BaseRegion constructor
BaseRegion({
- required String? name,
Create a geographical region that forms a particular shape
It can be converted to a:
- DownloadableRegion for downloading: toDownloadable
- Widget layer to be placed in a map: toDrawable
- list of
LatLng
s forming the outline: toOutline/LineRegion.toOutlines
Extended/implemented by:
Implementation
BaseRegion({required String? name})
: name = (name?.isEmpty ?? false)
? throw ArgumentError.value(name, 'name', 'Must not be empty.')
: name;