trans function
Returns the translation value from the key
you provide.
E.g. trans(context, "hello")
lang translation will be returned for the app locale.
Implementation
String? trans(BuildContext context, String key) =>
AppLocalizations.of(context)!.trans(key);