operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Compares this OverflowBounds with another object for equality.

Returns true if other is an OverflowBounds with identical overflow values.

Implementation

@override
bool operator ==(Object other) {
  if (identical(this, other)) return true;
  if (other.runtimeType != runtimeType) return false;
  return other is OverflowBounds &&
      other.top == top &&
      other.bottom == bottom &&
      other.left == left &&
      other.right == right;
}