canonicalizedLocale static method

String canonicalizedLocale(
  1. String? aLocale

Return the name aLocale turned into xx_YY where it might possibly be in the wrong case or with a hyphen instead of an underscore. If aLocale is null, for example, if you tried to get it from IE, return the current system locale.


static String canonicalizedLocale(String? aLocale) =>