operator == method

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

Compares coordinates for equality.

Implementation

@override
bool operator ==(Object other)
{
  if (other is LatLon) {
    return this.lat == other.lat && this.lon == other.lon;
  }
  else {
    return false;
  }
}