I10n class
Main I10n class to incorporate text translations into a mobile app.
Constructors
- I10n()
-
factory
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
Static Methods
-
dispose(
) → Future< bool> -
getError(
) → Exception? -
getLocale(
int index) → Locale? -
inError(
) → bool -
init(
{String? csv, Map< String, Map< ? map}) → Future<String, String> >bool?> -
initAsync(
{String? csv, Map< String, Map< ? map}) → Future<String, String> >bool?> -
load(
Locale locale) → Future< I10n> - Load the static Map object with the appropriate translations.
-
localeResolutionCallback(
Locale? locale, Iterable< Locale> ? supportedLocales) → Locale? -
of(
Text? text, {Key? key, TextStyle? style, StrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis}) → Text - Convert a Text object to one with a translation.
-
onSelectedItemChanged(
int index) → Future< void> -
s(
String? key) → String - Translate the String
-
t(
String? data, {Key? key, TextStyle? style, StrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior}) → Text - Supply a Text object for the translation.
-
toLocale(
String? _locale) → Locale?