flutterLocale property
Locale
get
flutterLocale
Implementation
Locale get flutterLocale {
switch (this) {
case AppLocale.en: return const Locale.fromSubtags(languageCode: 'en');
case AppLocale.zhHans: return const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans', );
case AppLocale.zhHant: return const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant', );
}
}