SortedGroupOrdered<T, P> class

Sorting rule that sorts items in the same order as the order of the group in orderGroups in which the value is present. Values in the same group are considered equal.

Inheritance

Constructors

SortedGroupOrdered(SortedMapper<T, P> mapper, List<List<P>> orderGroups, {bool invert = false})

Properties

hashCode int
The hash code for this object.
no setterinherited
invert bool
Whether to invert the sorting order.
finalinherited
mapper SortedMapper<T, P>
Function mapping an object to the desired property (or itself).
finalinherited
orderGroups List<List<P>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compare(P a, P b) int
Compare two P properties returned by the mapper.
override
compareComplex(T a, T b) int
Compare two T objects.
inherited
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