BasicLocale class

A basic representation of a locale.

Implemented types
Implementers
Available extensions

Constructors

BasicLocale(NaturalLanguage language, {String? countryCode, Script? script})
Creates an instance of BasicLocale.
const

Properties

countryCode String?
The region subtag for the locale.
final
hashCode int
The hash code for this object.
no setterinherited
language NaturalLanguage
The NaturalLanguage representing the language of the locale.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
script Script?
The optional script information of type Script.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({JsonCodec codec = const JsonCodec()}) String
Returns a JSON-encoded string representation of the object.
override
toString() String
A string representation of this object.
override

Operators

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