Interaction class

Base class for interactions that can be added to the map.

To create an interaction use TapInteraction and LongTapInteraction.

See also: MapboxMap.addInteraction.

Implementers

Constructors

Interaction({FeaturesetDescriptor? featuresetDescriptor, required InteractionType interactionType, bool stopPropagation = true, String? filter, double? radius})

Properties

featuresetDescriptor ↔ FeaturesetDescriptor?
The featureset descriptor that specifies the featureset to be included in the interaction.
getter/setter pair
filter ↔ String?
An optional filter of features that should trigger the interaction.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
interactionType ↔ InteractionType
The kind of gesture this interaction listens for.
getter/setter pair
radius ↔ double?
Radius of a tappable area.
getter/setter pair
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 pair

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