CustomMarker class

Constructors

CustomMarker({required String id, required LatLng position, required Widget widget, double width = 50, double height = 50, Alignment alignment = Alignment.center, int rotation = 0, bool flat = false, String? fallbackAssetPath, String? fallbackAssetPackage, VoidCallback? onTap, Object? cacheKey, Duration renderDelay = const Duration(milliseconds: 500)})

Properties

alignment → Alignment
final
cacheKey → Object?
Identifies what widget draws, for providers that draw markers as bitmaps (Google Maps, the Mapbox SDK).
final
fallbackAssetPackage → String?
final
fallbackAssetPath → String?
final
flat → bool
Whether the marker lies on the map rather than standing on it.
final
hashCode → int
The hash code for this object.
no setteroverride
height → double
final
id → String
final
onTap → VoidCallback?
Called when the marker is tapped.
final
position → LatLng
final
renderDelay → Duration
How long a bitmap marker waits before its widget is captured, so images inside it can load. A widget that loads nothing — text and shapes — can pass Duration.zero and show without the wait.
final
rotation → int
Degrees clockwise. From the top of the screen for an upright marker, and from north for a flat one.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
widget → Widget
final
width → double
final

Methods

getAnchor() → Offset
getBitmapDescriptor() → Future<BitmapDescriptor>
getUint8List() → Future<Uint8List>
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