Locales class

Constructors

Locales(Locale locale, {bool initialize = true})

Properties

hashCode int
The hash code for this object.
no setterinherited
locale Locale
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(String key, [List<String>? params, List<String>? localeParams]) String
load() Future
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

Static Properties

lang String
no setter
selectedLocale Locale
getter/setter pair
selectedLocaleRtl bool
no setter
supportedLocales List<Locale>
getter/setter pair

Static Methods

change(BuildContext context, String lang) → dynamic
currentLocale(dynamic context) Locale?
init(List<String> localeNames) Future
isDirectionRTL(BuildContext context) bool
of(BuildContext context) Locales?
string(BuildContext context, String key, {List<String>? params, List<String>? localeParams}) String