StringFoldedCompareExtensions extension
Null-aware, diacritic-folding comparison helpers for String? — the
"fold first" comparator that compareStringNullable's docstring tells
callers to build for human-facing alphabetic order.
- on
Methods
-
compareStringFolded(
String? other, {bool caseSensitive = false, bool nullsLast = false, bool natural = false}) → int -
Available on String?, provided by the StringFoldedCompareExtensions extension
Compares two nullable strings as a human reads a contact/name list: diacritics folded (á→a,ß→ss,æ→ae), case-insensitive by default, optional natural numeric ordering, nulls grouped, and a deterministic tie-break so distinct strings NEVER compare equal.