tryParseLocale static method

Locale? tryParseLocale(
  1. String localeIdentifier
)

Return true if the localeIdentifier can be parsed, null otherwise.

Implementation

static Locale? tryParseLocale(String localeIdentifier) =>
    Locale.tryParse(localeIdentifier);