addWidgetMarker method
void
addWidgetMarker(})
Adds a custom Flutter widget as a marker at the given position.
The widget is overlaid on the map and automatically syncs its position.
Implementation
void addWidgetMarker(
LatLng position,
Widget widget, {
String? id,
Alignment alignment = Alignment.center,
}) {
markers.addWidgetMarker(position, widget, id: id, alignment: alignment);
}