equals method

bool equals(
  1. ILibLocale other
)

Return true if the other locale is exactly equal to the current one.

Implementation

bool equals(ILibLocale other) {
  return language == other.language &&
      region == other.region &&
      script == other.script &&
      variant == other.variant;
}