subtract method

EdgeInsets subtract(
  1. EdgeInsets other
)

Returns the insets with the given offsets subtracted from the corresponding directions.

Implementation

EdgeInsets subtract(EdgeInsets other) {
  return EdgeInsets.fromLTRB(
    left - other.left,
    top - other.top,
    right - other.right,
    bottom - other.bottom,
  );
}