I18nRegistry class

The place where you register the applications langauge the I18n provider has direct contact with this class

Constructors

I18nRegistry()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

initialLanguage → dynamic
this getter is used by the I18n provider checks if the registry is empty and throws error if it is
read-only
langs Map<String, Map<String, dynamic>>
the langaugse of the application langauges are added to the regisry using the I18nRegistry.register
read / write

Static Methods

isEmpty() bool
check if the langauges map is empty or not
register(String key, Map<String, dynamic> language) → void
register a langauge to the registry expects a key-value pair to be received
setInitialLanguage(Map<String, dynamic> language) → void
sets the initialLanguage of the application