copyWith method

VectorSourceProperties copyWith(
  1. String? url,
  2. List<String>? tiles,
  3. List<double>? bounds,
  4. String? scheme,
  5. double? minzoom,
  6. double? maxzoom,
  7. String? attribution,
  8. String? promoteId,
)

Implementation

VectorSourceProperties copyWith(
  String? url,
  List<String>? tiles,
  List<double>? bounds,
  String? scheme,
  double? minzoom,
  double? maxzoom,
  String? attribution,
  String? promoteId,
) {
  return VectorSourceProperties(
    url: url ?? this.url,
    tiles: tiles ?? this.tiles,
    bounds: bounds ?? this.bounds,
    scheme: scheme ?? this.scheme,
    minzoom: minzoom ?? this.minzoom,
    maxzoom: maxzoom ?? this.maxzoom,
    attribution: attribution ?? this.attribution,
    promoteId: promoteId ?? this.promoteId,
  );
}