Marker class
Marks a geographical location on the map.
Constructors
- Marker({required String id, required LatLng position, VoidCallback? onTap, Annotation? annotation = const Annotation(), MarkerIcon? icon, double zIndex = 0.0, Anchor? anchor, int? heading})
-
const
Properties
- anchor → Anchor?
-
Specifies the anchor to be at a particular point in the marker image.
final
- annotation → Annotation?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- heading → int?
-
final
- icon → MarkerIcon?
-
Optional MarkerIcon used to replace default icon.
final
- id → String
-
Uniquely identifies a
Marker
.final - onTap → VoidCallback?
-
A
void Function
which is called whenever aMarker
is tapped.final - position → LatLng
-
The location where the
Marker
is drawn is represented asLatLng
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- zIndex → double
-
The z-index of the marker, used to determine relative drawing order of
map overlays.
final
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.
override