difference method

EdgeInsets difference(
  1. EdgeInsets other
)

Returns the difference between two EdgeInstes

Implementation

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