copyWith method

Feature copyWith({
  1. dynamic id,
  2. Geometry? geometry,
  3. Map<String, dynamic>? properties,
  4. String? source,
})

Implementation

Feature copyWith({
  dynamic id,
  Geometry? geometry,
  Map<String, dynamic>? properties,
  String? source,
}) =>
    Feature.fromJsObject(FeatureJsImpl(
      type: 'Feature',
      id: id ?? this.id,
      geometry: geometry != null ? geometry.jsObject : this.geometry.jsObject,
      properties:
          properties != null ? jsify(properties) : jsify(this.properties),
      source: source ?? this.source,
    ));