defaultLocale property

Future<String?> defaultLocale

Returns a String of the DEFAULT device locale made up of the language and the region (e.g. en-US or en_US).

Implementation

static Future<String?> get defaultLocale async {
  final List? locales = await preferredLanguages;
  if (locales == null || locales.isEmpty) {
    return await currentLocale;
  }
  return locales[0];
}