Skip to main content

translate method

String? translate (String? key)

Implementation

String? translate(String? key) \{
if (isTest) return key;

ignore: unnecessary_null_comparison
if (key == null) \{
return '...';
\}
return _localizedStrings[key];
\}