GeoJson constructor
GeoJson({
- GeoJsonFeatureCollection? featureCollection,
- GeoJsonFeature<
GeoJsonGeometry> ? feature,
Default constructor
Implementation
GeoJson({this.featureCollection, this.feature})
: assert((feature == null) != (featureCollection == null), 'Only feature or feature collection must be passed');