showMarkerInfoWindow method

  1. @override
Future<void> showMarkerInfoWindow(
  1. MarkerId markerId, {
  2. required int mapId,
})
override

Programmatically show the Info Window for a Marker.

The markerId must match one of the markers on the map. An invalid markerId triggers an "Invalid markerId" error.

Implementation

@override
Future<void> showMarkerInfoWindow(MarkerId markerId, {required int mapId}) {
  return channel(mapId).invokeMethod<void>(
    'markers#showInfoWindow',
    <String, String>{'markerId': markerId.value},
  );
}