copyWith method

GroundOverlay copyWith({
  1. BitmapDescriptor? bitmapParam,
  2. Offset? anchorParam,
  3. int? zIndexParam,
  4. bool? visibleParam,
  5. bool? consumeTapEventsParam,
  6. double? widthParam,
  7. double? heightParam,
  8. double? bearingParam,
  9. LatLng? locationParam,
  10. LatLngBounds? boundsParam,
  11. VoidCallback? onTapParam,
  12. 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);
}