AutoLocalization class
Properties
Methods
-
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
- instance → AutoLocalization
-
no setter
Static Methods
-
addOnLocaleChangeCallback(
LocaleUpdateCallback onChange) → void - Adds the callback with updated Locale when AutoLocalization constructor is called.
-
maybeOf(
BuildContext context) → AutoLocalization? - Gets the AutoLocalization instance from given BuildContext.
-
of(
BuildContext context) → AutoLocalization - Gets the not-null AutoLocalization instance from given BuildContext. If not found throws an FlutterError
-
removeOnLocaleChangeCallback(
LocaleUpdateCallback onChange) → void - Removes callback added in addOnLocaleChangeCallback.
-
updateLocale(
Locale locale) → void - Updates locale, invokes locale change callbacks