InjectedI18NImp<I18N> class

Mixed-in types

Constructors

InjectedI18NImp({required Map<Locale, FutureOr<I18N> Function()> i18Ns, String? persistKey, required StateInterceptor<I18N>? stateInterceptor, required SideEffects<I18N>? sideEffects, DependsOn<I18N>? dependsOn, int undoStackLength = 0, bool autoDisposeWhenNotUsed = true, String? debugPrintWhenNotifiedPreMessage, required Object? toDebugString(I18N?)?})

Properties

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

Methods

call(BuildContext context, {bool defaultToGlobal = false}) Injected<I18N>
Use of instead
override
didChangeLocales(List<Locale>? locales) → void
dispose() → void
dispose the state
override
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.
override
toString() String
A string representation of this object.
inherited

Operators

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