PlayxLocalizationStringExtensions extension
Strings extension method for access to tr and plural()
Example :
'title'.tr()
'day'.plural(21)
Methods
-
plural(num value, {List<String>? args, Map<String, String>? namedArgs, String? name, NumberFormat? format})
→ String
-
An extension method for translating your language keys with pluralization.
Subscribes the widget on current
Localization
if context was provided.
Otherwise, it may not listen to the current Localization
changes.
-
tr({BuildContext? context, List<String>? args, Map<String, String>? namedArgs, String? gender})
→ String
-
An extension method for translating your language keys.
Subscribes the widget on current
Localization
if context
was provided.
Otherwise, it may not listen to the current Localization
changes.
-
trExists()
→ bool
-