LocalinoProvider mixin
Mixin class to provide Localino - localize functions.
Access to LocalinoDelegate is handled via static functions.
- Mixin Applications
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- localization → Localino
-
Instance of default Localino
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
extractLocalization(
dynamic data, {String? locale, String? defaultLocale}) → String - Localino.extractLocalization
-
localize(
String key) → String - Localino.localize
-
localizeDynamic(
String key, {LocalizationParser? parser, dynamic defaultValue}) → dynamic - Localino.localizeDynamic
-
localizeFormat(
String key, Map< String, String> params) → String - Localino.localizeFormat
-
localizeList(
String key) → Iterable< String> - Localino.localizeList
-
localizeOr(
String key, List< String> alterKeys) → String - Localino.localizeOr
-
localizePlural(
String key, int plural, [Map< String, String> ? params]) → String - Localino.localizePlural
-
localizeValue(
String key, String value) → String - Localino.localizeValue
-
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
- delegate → LocalinoDelegate
-
Shortcut for delegate of default Localino.
no setter
- instance → Localino
-
Returns instance of Localino from Control store.
no setter
- remote → LocalinoRemote
-
Returns instance of LocalinoRemote from Control store.
no setter
- repo → LocalinoRemoteApi
-
Returns instance of LocalinoRemoteApi from Control store.
no setter
Static Methods
-
of(
BuildContext context) → Localino? -
Delegate of Localino for the widget tree that corresponds to the given
context
. -
subscribe(
ValueCallback< LocalinoArgs?> callback) → BroadcastSubscription<LocalinoArgs> - Subscription to default global object stream - ControlBroadcast with Localino key. Every localization change is send to global broadcast with result of data load.