operator == method

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

Equality operator overload.

Equality should be tested based on values, because we may use this class by instantiating it at runtime based on some other source. In that case, there may be multiple distinct instances representing the same point.

Implementation

@override
bool operator ==(other) {
  if (!(super == (other))) {
    return false;
  }
  return other is GpsStay &&
      other.accuracy == accuracy &&
      other.endTime == endTime;
}