MPLocale class

One language, ready to be handed to registerMPMessages.

Annotations

Constructors

MPLocale({required String locale, required Map<String, Map<String, String>> messages, List<String> aliases = const <String>[]})
A table for locale.
const

Properties

aliases → List<String>
Other tags that resolve to this same table: zh-hant answers for zh-TW, zh-HK and zh-MO.
final
hashCode → int
The hash code for this object.
no setterinherited
locale → String
The BCP 47 tag this table answers to, lowercased on the way in.
final
messages → Map<String, Map<String, String>>
The strings, by namespace and key. Anything left out falls back to English, a namespace at a time.
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.
inherited

Operators

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