tr method
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.
args
List of localized strings. Replaces {} left to right
namedArgs
Map of localized strings. Replaces the name keys {key_name} according to its name
gender
Gender switcher. Changes the localized string based on gender string
Implementation
String tr({
BuildContext? context,
List<String>? args,
Map<String, String>? namedArgs,
String? gender,
}) =>
ez.tr(this,
context: context, args: args, namedArgs: namedArgs, gender: gender);