SubRegion class sealed

Represents a named subdivision of a Continent.

A SubRegion describes geographical areas such as "Central America" or "Western Europe". Each subregion belongs to a single continent and is modeled as an immutable value object.

Inheritance

Constructors

SubRegion.fromName(String name)
Finds a subregion that matches the provided name (case-insensitive).
factory

Properties

continent → Continent
The parent continent that owns this subregion.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The name of the region.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString({bool short = true}) → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

maybeFromValue<T extends Object>(T? value, {Iterable<SubRegion> subregions = list, T? where(SubRegion subRegion)?}) → SubRegion?
Creates a subregion from an arbitrary value.

Constants

list → const List<SubRegion>
All supported subregions grouped under their parent continents.