MarkerTapBehavior class
Controls what happens when a Marker is tapped.
Constructors
- MarkerTapBehavior.custom(dynamic onTap(PopupSpec popupSpec, PopupState popupState, PopupController popupController))
- Define your own custom behavior when tapping a marker.
- MarkerTapBehavior.none(dynamic onTap(PopupSpec popupSpec, PopupState popupState, PopupController popupController))
- Do nothing when tapping the marker. This is useful if you want to control popups exclusively with the PopupController.
- MarkerTapBehavior.togglePopup()
- Toggle the popup of the tapped marker and leave all other visible popups as they are. This is the recommended behavior if you want to show multiple popups at once.
- MarkerTapBehavior.togglePopupAndHideRest()
- Toggle the popup of the tapped marker and hide all other popups. This is the recommended behavior if you only want to show one popup at a time.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
apply(
PopupSpec popupSpec, PopupState popupState, PopupController popupController) → void -
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