of method
Value corresponsing to the current language (de
,fr
,it
) of context
.
Requires a Localizations widget in scope. Returns the German value when
no language matches context
.
Implementation
String of(BuildContext context) {
switch (Localizations.localeOf(context).languageCode) {
case 'de':
return this.de;
case 'fr':
return this.fr;
case 'it':
return this.it;
default:
return this.de;
}
}