Collation class final

Provides locale-sensitive string comparison.

Constructors

Collation({Locale? locale, Usage usage = Usage.sort, Sensitivity? sensitivity, bool ignorePunctuation = false, bool? numeric, CaseFirst? caseFirst, String? collation})
Creates a new locale-sensitive string comparator.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compare(String a, String b) int
Compare two strings in a locale-dependant manner.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited