operator unary- method

  1. @override
EdgeInsets operator unary-()
override

Returns the EdgeInsets object with each dimension negated.

This is the same as multiplying the object by -1.0.

Implementation

@override
EdgeInsets operator -() {
  return EdgeInsets.fromLTRB(
    -left,
    -top,
    -right,
    -bottom,
  );
}