operator == method

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

Compares sizes for equality.

Implementation

@override
bool operator ==(Object other)
{
  if (other is Size) {
    return width == other.width && height == other.height;
  }
  else {
    return false;
  }
}