localeRegex property
Finds the parts of the locale. It must start with an underscore.
Implementation
static RegExp localeRegex =
RegExp(r'^((\w+)_)?([a-z]{2})([-_]([a-zA-Z]{2}))?$');
Finds the parts of the locale. It must start with an underscore.
static RegExp localeRegex =
RegExp(r'^((\w+)_)?([a-z]{2})([-_]([a-zA-Z]{2}))?$');