ResolvedLocale class

Immutable wrapper carrying a resolved BCP-47 language tag.

Used in request pipelines and client routers to represent normalized locale identifiers (e.g. 'en-US', 'fr-FR', 'de').

const resolved = ResolvedLocale('en-US');
print(resolved.languageTag); // "en-US"

See also:

Constructors

ResolvedLocale(String languageTag)
Creates a ResolvedLocale containing languageTag.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
languageTag String
The resolved BCP-47 language tag (e.g. 'en-US', 'fr-FR', 'de').
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