GeoJson constructor

GeoJson({
  1. GeoJsonFeatureCollection? featureCollection,
  2. GeoJsonFeature<GeoJsonGeometry>? feature,
})

Default constructor

Implementation

GeoJson({this.featureCollection, this.feature})
    : assert((feature == null) != (featureCollection == null), 'Only feature or feature collection must be passed');