isMarkerInfoWindowShown method

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

Returns true when the InfoWindow is showing, false otherwise.

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

Implementation

@override
Future<bool> isMarkerInfoWindowShown(
  MarkerId markerId, {
  required int mapId,
}) async {
  return (await channel(mapId).invokeMethod<bool>('markers#isInfoWindowShown',
      <String, String>{'markerId': markerId.value}))!;
}