copyWith method

GroundOverlay copyWith({
  1. double? bearingParam,
  2. double? transparencyParam,
  3. int? zIndexParam,
  4. bool? visibleParam,
  5. bool? clickableParam,
  6. VoidCallback? onTapParam,
})

Creates a new GroundOverlay object whose values are the same as this instance, unless overwritten by the specified parameters.

Implementation

GroundOverlay copyWith({
  double? bearingParam,
  double? transparencyParam,
  int? zIndexParam,
  bool? visibleParam,
  bool? clickableParam,
  VoidCallback? onTapParam,
}) {
  return GroundOverlay._(
    groundOverlayId: groundOverlayId,
    bearing: bearingParam ?? bearing,
    transparency: transparencyParam ?? transparency,
    zIndex: zIndexParam ?? zIndex,
    visible: visibleParam ?? visible,
    clickable: clickableParam ?? clickable,
    onTap: onTapParam ?? onTap,
    image: image,
    position: position,
    bounds: bounds,
    width: width,
    height: height,
    anchor: anchor,
    zoomLevel: zoomLevel,
  );
}