hideMarkerInfoWindow method

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

Programmatically hide 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> hideMarkerInfoWindow(
  MarkerId markerId, {
  required int mapId,
}) {
  return channel(mapId).invokeMethod<void>(
      'markers#hideInfoWindow', <String, String>{'markerId': markerId.value});
}