findDeviceLocale method

Future<Locale> findDeviceLocale()

Return the device current locale

Implementation

Future<Locale> findDeviceLocale() async {
  final systemLocale = PlatformDispatcher.instance.locale;
  MessagePrinter.info("The system locale is $systemLocale");
  return Future.value(systemLocale);
}