getDevicelocale method

Future<Locale> getDevicelocale()

Implementation

Future<Locale> getDevicelocale() async {
  final localeIdentifiers = await Devicelocale.preferredLanguagesAsLocales;

  return localeIdentifiers.first;
}