operator == method

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

Compares two Sizes for equality.

Implementation

// We don't compare the runtimeType because of _DebugSize in the framework.
@override
bool operator ==(dynamic other) {
  if (other is! Size)
    return false;
  final Size typedOther = other;
  return _dx == typedOther._dx &&
         _dy == typedOther._dy;
}