matches method

bool matches(
  1. Locale other
)

Implementation

bool matches(Locale other) {
  return languageCode == other.languageCode &&
      (countryCode == null || countryCode == other.countryCode);
}