InjectedI18N<I18N> class abstract

Used to manage app localization and internationalization

Implementers

Constructors

InjectedI18N()

Properties

hashCode int
The hash code for this object.
no setterinherited
locale Locale?
The current locale language translation
getter/setter pair
localeResolutionCallback Locale Function(Locale? locale, Iterable<Locale> supportedLocales)
Default locale resolution used by states_rebuilder.
no setter
localizationsDelegates Iterable<LocalizationsDelegate>?
return a list of prebuilt LocalizationsDelegates: GlobalMaterialLocalizations, GlobalWidgetsLocalizations and GlobalCupertinoLocalizations
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state → I18N
get the current
no setter
supportedLocales List<Locale>
Get lists of supported locales
no setter

Methods

call(BuildContext context, {bool defaultToGlobal = false}) Injected<I18N>
Use of instead
dispose() → void
dispose the state
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
of(BuildContext context, {bool defaultToGlobal = false}) → I18N
Obtain the current translation using inherited.
toString() String
A string representation of this object.
inherited

Operators

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