WidgetMarker class

Constructors

WidgetMarker({required LatLng position, required String markerId, VoidCallback? onTap, required Widget widget, bool draggable = false, InfoWindow infoWindow = InfoWindow.noText, double rotation = 0.0, bool visible = true, double zIndex = 0.0, ValueChanged<LatLng>? onDrag, ValueChanged<LatLng>? onDragStart, ValueChanged<LatLng>? onDragEnd})
const

Properties

draggable bool
True if the marker is draggable by user touch events.
final
hashCode int
The hash code for this object.
no setteroverride
infoWindow InfoWindow
True if the marker is rendered flatly against the surface of the Earth, so A Google Maps InfoWindow.
final
markerId String
This has to be unique,otherwise it will not be shown.
final
onDrag ValueChanged<LatLng>?
Signature reporting the new LatLng during the drag event.
final
onDragEnd ValueChanged<LatLng>?
Signature reporting the new LatLng at the end of a drag event.
final
onDragStart ValueChanged<LatLng>?
Signature reporting the new LatLng at the start of a drag event.
final
onTap VoidCallback?
Gestures of widget is disabled. Use this callback instead.
final
position LatLng
final
rotation double
Rotation of the marker image in degrees clockwise from the anchor point.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
visible bool
True if the marker is visible.
final
widget Widget
final
zIndex double
The z-index of the marker, used to determine relative drawing order of map overlays.
final

Methods

copyWith({LatLng? position, String? markerId, VoidCallback? onTap, Widget? widget, bool? draggable, InfoWindow? infoWindow, double? rotation, bool? visible, double? zIndex, ValueChanged<LatLng>? onDragStart, ValueChanged<LatLng>? onDragEnd, ValueChanged<LatLng>? onDrag}) WidgetMarker
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override