operator == method

bool operator == (dynamic other)

Implementation

bool operator ==(other) {
  if (other is! Rectangle) return false;
  return left == other.left &&
      top == other.top &&
      width == other.width &&
      height == other.height;
}