LocalizerLocale class

Annotations
  • @immutable

Constructors

LocalizerLocale(String name, [Map<String, String> messages = const {}])
Creates a new instance of LocalizerLocale. name is the identifier of this object in Localizer. messages is the map of messages. messages are the messages of this locale.

Properties

hashCode int
The hash code for this object.
no setterinherited
keys Iterable<String>
Returns all keys of the messages.
no setter
name String
The identifier of this object in Localizer.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

contains(String key) bool
Test if a message with the key exists.
get(String key, [List args = const []]) String
Returns the message of the key or the key if the message is not found. key is the key of the message. args are the arguments of the message. This method uses sprintf to format the message.
getOrDefault(String key, String defaultValue, [List args = const []]) String
Returns the message of the key or the default value if the message is not found. key is the key of the message. defaultValue is the default value if the message is not found. args are the arguments of the message. This method uses sprintf to format the message.
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