isMarkerInfoWindowShown method
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.
- See also:
- showMarkerInfoWindow to show the Info Window.
- hideMarkerInfoWindow to hide the Info Window.
Implementation
Future<bool> isMarkerInfoWindowShown(MarkerId markerId) async {
if (Platform.isAndroid) {
return googleController!
.isMarkerInfoWindowShown(markerId.googleMapsMarkerId);
} else if (Platform.isIOS) {
return await appleController!
.isMarkerInfoWindowShown(markerId.appleMapsAnnoationId) ??
false;
}
throw ('Platform not supported.');
}