compareLocale method

int compareLocale(
  1. String other, {
  2. Locale? locale,
})

Compare two strings in a locale-dependent manner.

For more options, use Intl.collation directly.

Implementation

int compareLocale(String other, {Locale? locale}) =>
    Intl(locale: locale).collation().compare(this, other);