copyWith method
MapOptions
copyWith({
- CameraPosition? position,
- CameraPositionPoint? positionPoint,
- CameraZoomRestrictions? zoomRestrictions,
- Optional<
DevicePpi?> ? devicePPI, - Optional<
DeviceDensity?> ? deviceDensity, - Optional<
List< ? sources,Source> ?> - Optional<
Style?> ? style, - Optional<
CancelableOperation< ? styleFuture,Style> ?> - MapAppearance? appearance,
- Optional<
Fps?> ? maxFps, - Optional<
Fps?> ? powerSavingMaxFps, - Optional<
Color?> ? backgroundColor,
Implementation
MapOptions copyWith({
sdk.CameraPosition? position,
sdk.CameraPositionPoint? positionPoint,
sdk.CameraZoomRestrictions? zoomRestrictions,
Optional<sdk.DevicePpi?>? devicePPI,
Optional<sdk.DeviceDensity?>? deviceDensity,
Optional<List<sdk.Source>?>? sources,
Optional<sdk.Style?>? style,
Optional<CancelableOperation<sdk.Style>?>? styleFuture,
MapAppearance? appearance,
Optional<sdk.Fps?>? maxFps,
Optional<sdk.Fps?>? powerSavingMaxFps,
Optional<Color?>? backgroundColor,
}) {
return MapOptions(
position: position ?? this.position,
positionPoint: positionPoint ?? this.positionPoint,
devicePPI: devicePPI != null ? devicePPI.value : this.devicePPI,
deviceDensity:
deviceDensity != null ? deviceDensity.value : this.deviceDensity,
sources: sources != null ? sources.value : this.sources,
style: style != null ? style.value : this.style,
styleFuture: styleFuture != null ? styleFuture.value : this.styleFuture,
appearance: appearance ?? this.appearance,
maxFps: maxFps != null ? maxFps.value : this.maxFps,
powerSavingMaxFps: powerSavingMaxFps != null
? powerSavingMaxFps.value
: this.powerSavingMaxFps,
backgroundColor: backgroundColor != null
? backgroundColor.value
: this.backgroundColor,
);
}