copyWith method

StaticMapController copyWith({
  1. String? googleApiKey,
  2. int? width,
  3. int? height,
  4. List<Marker>? markers,
  5. List<Path>? paths,
  6. GeocodedLocation? center,
  7. int? zoom,
  8. MapScale? scale,
  9. MapImageFormat? format,
  10. StaticMapType? maptype,
  11. String? language,
  12. String? region,
  13. String? signature,
})

Implementation

StaticMapController copyWith({
  String? googleApiKey,
  int? width,
  int? height,
  List<Marker>? markers,
  List<Path>? paths,
  GeocodedLocation? center,
  int? zoom,
  MapScale? scale,
  MapImageFormat? format,
  StaticMapType? maptype,
  String? language,
  String? region,
  String? signature,
}) =>
    StaticMapController(
      googleApiKey: googleApiKey ?? this.googleApiKey,
      width: width ?? this.width,
      height: height ?? this.height,
      markers: markers ?? this.markers,
      paths: paths ?? this.paths,
      center: center ?? this.center,
      zoom: zoom ?? this.zoom,
      scale: scale ?? this.scale,
      format: format ?? this.format,
      maptype: maptype ?? this.maptype,
      language: language ?? this.language,
      region: region ?? this.region,
      signature: signature ?? this.signature,
    );