TapInteraction<T extends FeaturesetDescriptor> class final

A single tap interaction on a featureset or on the map.

mapboxMap.addInteraction(TapInteraction(StandardPOIs(), (feature, context) {
  // Handle tapped POI
}));
Inheritance

Constructors

TapInteraction(T featuresetDescriptor, OnInteractionFeatureContext<TypedFeaturesetFeature<T>> actionFeatureContext, {String? filter, double? radius, bool stopPropagation = true})
TapInteraction.onMap(OnInteractionContext actionContext, {bool stopPropagation = true})

Properties

action ↔ OnInteraction<TypedFeaturesetFeature<T>>
getter/setter pairinherited
featureFactory → TypedFeaturesetFeature<T> Function(FeaturesetFeature)
Constructs a typed feature from a raw FeaturesetFeature.
finalinherited
featuresetDescriptor ↔ FeaturesetDescriptor?
The featureset descriptor that specifies the featureset to be included in the interaction.
getter/setter pairinherited
filter ↔ String?
An optional filter of features that should trigger the interaction.
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
interactionType ↔ InteractionType
The kind of gesture this interaction listens for.
getter/setter pairinherited
radius ↔ double?
Radius of a tappable area.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stopPropagation ↔ bool
Whether to stop the propagation of the interaction to the map. Defaults to true.
getter/setter pairinherited

Methods

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

Static Methods

decode(Object result) → TapInteraction<FeaturesetDescriptor>