operator == method

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

Compares this GeoPoint with other for equality.

Two points are equal if their latitudes and longitudes are exactly equal.

Implementation

@override
bool operator ==(Object other) =>
    identical(this, other) ||
    other is GeoPoint &&
        latitude == other.latitude &&
        longitude == other.longitude;