operator == method

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

相等性比较

Implementation

@override
bool operator ==(Object other) {
  if (identical(this, other)) return true;
  return other is RectangleFeature &&
      other.topLeft == topLeft &&
      other.topRight == topRight &&
      other.bottomRight == bottomRight &&
      other.bottomLeft == bottomLeft;
}