FeatureCollection constructor

FeatureCollection({
  1. required List<Feature> features,
})

Implementation

factory FeatureCollection({
  required List<Feature> features,
}) {
  return FeatureCollection.fromJsObject(FeatureCollectionJsImpl(
    type: 'FeatureCollection',
    features: features.map((f) => f.jsObject).toList(),
  ));
}