operator unary- method Null safety

  1. @override
EdgeInsetsDirectional operator unary-()
override

Returns the EdgeInsetsDirectional object with each dimension negated.

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

Implementation

@override
EdgeInsetsDirectional operator -() {
  return EdgeInsetsDirectional.fromSTEB(
    -start,
    -top,
    -end,
    -bottom,
  );
}