copyWith method

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

Implementation

Feature copyWith({
  num? 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,
    ));