operator == method

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

Compares two Sizes for equality.

Implementation

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