customMarker function
Marker
customMarker(
- LatLng? latLng,
- void onDragEnd( )?,
- {MarkerColor markerColor = MarkerColor.red}
Custom Marker
Implementation
Marker customMarker(
LatLng? latLng,
void Function(LatLng)? onDragEnd, {
MarkerColor markerColor = MarkerColor.red,
}) =>
Marker(
draggable: true,
onDragEnd: onDragEnd,
markerId: const MarkerId('0'),
position: latLng!,
icon: colors[markerColor]!,
);