Feature constructor

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

Implementation

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