currentAsLocale property

Future<Locale?> currentAsLocale

Returns a Locale of the currently set DEVICE locale made up of the language and the region

Implementation

static Future<Locale?> get currentAsLocale async {
  final String? locale = await currentLocale;
  return _getAsLocale(locale, null);
}