operator - method

SizedBox operator -(
  1. SizedBox other
)

Returns the difference between two SizedBox.

Implementation

SizedBox operator -(SizedBox other) {
  return SizedBox(
    width: (width ?? 0.0) - (other.width ?? 0.0),
    height: (height ?? 0.0) - (other.height ?? 0.0),
    child: other.child,
  );
}