GeoJsonPolygon constructor
const
GeoJsonPolygon({
- required PolygonCoordinates coordinates,
- String? name,
- dynamic type,
Default constructor JSON 'type' is intentionally ignored and super is forced to use proper type
Implementation
const GeoJsonPolygon({required this.coordinates, this.name, type}) : super(GeoJsonGeometryType.polygon);