Region class

An identifier used to select a user's region.

See also:

  • Locale, An identifier used to select a user's language and formatting preferences.
Annotations

Constructors

Region({required String regionalCode})
An identifier used to select a user's region.
const
Region.fromPlatform()
Fetches the region from the PlatformDispatcher.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
regionalCode String
Code that identifies this current region.
final
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() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

empty → const Region
An empty region.