copyWith method
GroundOverlay
copyWith({
- BitmapDescriptor? bitmapParam,
- Offset? anchorParam,
- int? zIndexParam,
- bool? visibleParam,
- bool? consumeTapEventsParam,
- double? widthParam,
- double? heightParam,
- double? bearingParam,
- LatLng? locationParam,
- LatLngBounds? boundsParam,
- VoidCallback? onTapParam,
- double? opacityParam,
Creates a new GroundOverlay object whose values are the same as this instance, unless overwritten by the specified parameters.
Implementation
GroundOverlay copyWith({
BitmapDescriptor? bitmapParam,
Offset? anchorParam,
int? zIndexParam,
bool? visibleParam,
bool? consumeTapEventsParam,
double? widthParam,
double? heightParam,
double? bearingParam,
LatLng? locationParam,
LatLngBounds? boundsParam,
VoidCallback? onTapParam,
double? opacityParam,
}) {
return GroundOverlay(
groundOverlayId: groundOverlayId,
consumeTapEvents: consumeTapEventsParam ?? consumeTapEvents,
bitmap: bitmapParam ?? bitmap,
opacity: opacityParam ?? opacity,
location: locationParam ?? location,
visible: visibleParam ?? visible,
bearing: bearingParam ?? bearing,
anchor: anchorParam ?? anchor,
height: heightParam ?? height,
bounds: boundsParam ?? bounds,
zIndex: zIndexParam ?? zIndex,
width: widthParam ?? width,
onTap: onTapParam ?? onTap);
}