GroundOverlay constructor
const
GroundOverlay({
- required GroundOverlayId groundOverlayId,
- bool consumeTapEvents = false,
- LatLng? location,
- int zIndex = 0,
- VoidCallback? onTap,
- bool visible = true,
- BitmapDescriptor? bitmap,
- LatLngBounds? bounds,
- double? width,
- double? height,
- double bearing = 0.0,
- Offset anchor = Offset.zero,
- double opacity = 1.0,
Creates an immutable representation of a GroundOverlay to draw on GoogleMap. The following ground overlay positioning is allowed by the Google Maps Api
Implementation
const GroundOverlay({
required this.groundOverlayId,
this.consumeTapEvents = false,
this.location,
this.zIndex = 0,
this.onTap,
this.visible = true,
this.bitmap,
this.bounds,
this.width,
this.height,
this.bearing = 0.0,
this.anchor = Offset.zero,
this.opacity = 1.0,
}) : assert(
(height != null && width != null && location != null && bounds == null) ||
(height == null && width == null && location == null && bounds != null) ||
(height == null && width != null && location != null && bounds == null) ||
(height == null && width == null && location == null && bounds == null),
"Only one of the three types of positioning is allowed, please refer "
"to the https://developers.google.com/maps/documentation/android-sdk/groundoverlay#add_an_overlay"),
assert(0.0 <= opacity && opacity <= 1.0);