AppLocale class Null safety

A locale class used to manage the current locale state.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
locale Locale
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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
updateLocale(BuildContext context, Locale locale) → dynamic
Updates the current locale for the app. Provide the locale you wish to use like Locale("es") The locale needs to also exist within your /lang directory

Operators

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

Static Properties

instance AppLocale
final