MarkerLongPressBehavior class
Controls what happens when a MarkerData is longpressed.
Constructors
- MarkerLongPressBehavior.custom(dynamic onLongPress(MarkerData marker, PopupController popupController))
- Define your own custom behavior when longpressing a marker.
- MarkerLongPressBehavior.none(dynamic onLongPress(MarkerData marker, PopupController popupController))
- Do nothing when longpressing the marker. This is useful if you want to control popups exclusively with the PopupController.
- MarkerLongPressBehavior.togglePopup()
- Toggle the popup of the longpressed marker and leave all other visible popups as they are. This is the recommended behavior if you want to show multiple popups at once.
- MarkerLongPressBehavior.togglePopupAndHideRest()
- Toggle the popup of the longpressed 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(
MarkerData marker, 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