getDeviceLocale method
Language
Implementation
Locale getDeviceLocale() {
switch (_getStorage.read(deviceLocaleKey) as String?) {
case 'en':
return const Locale('en', 'US');
case 'de':
return const Locale('de', 'DE');
default:
return const Locale('en', 'US');
}
}