locale method

Locale locale({
  1. String? countryCode,
  2. String? scriptCode,
})

Create a Locale object

Implementation

Locale locale({String? countryCode, String? scriptCode}) {
  return Locale.fromSubtags(
    languageCode: this,
    countryCode: countryCode,
    scriptCode: scriptCode,
  );
}