MarkerMatcher class
Matches a given marker either by equality (MarkerMatcher.equalsMarker) or using a location and test (MarkerMatcher.withPredicate).
Constructors
- MarkerMatcher.equalsMarker(Marker _marker)
-
Matches a
Marker
which equals the provided marker. This relies on the marker's == implementation. If your SuperclusterLayer's indexBuilder builds the supercluster index in a separate isolate be sure to read the documentation of IndexBuilders.computeWithOriginalMarkers and IndexBuilders.computeWithCopiedMarkers for an explanation on how this may affect == comparison. - MarkerMatcher.withPredicate({required LatLng point, required bool predicate(Marker marker)})
-
Matches a
Marker
at the givenpoint
for which thepredicate
returns true.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- point → LatLng
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
matches(
Marker marker) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited