parse static method

Locale parse(
  1. String source
)

Implementation

static Locale parse(String source) {
  return tryParse(source) ?? const Locale("en", "US");
}