onMarkerTap property

void Function(BuildContext context, String markerId)? onMarkerTap
final

Optional convenience callback fired when a marker is tapped. Useful to open any Flutter widget (bottom sheet, dialog, overlay, etc.). If you need more control, you can also listen to GoogleMapController.onMarkerTap directly.

Implementation

final void Function(BuildContext context, String markerId)? onMarkerTap;