isEquivalentClass method
Returns whether the two Geometry
s are equal, from the point
of view of the equalsExact
method. Called by equalsExact
. In general, two Geometry
classes are considered to be
"equivalent" only if they are the same class. An exception is LineString
, which is considered to be equivalent to its subclasses.
@param other the Geometry
with which to compare this Geometry
for equality
@return true
if the classes of the two Geometry
s are considered to be equal by the equalsExact
method.
Implementation
bool isEquivalentClass(Geometry other) {
return this.runtimeType == other.runtimeType;
}