SortedOrdered<T, P> class

Sorting rule that sorts items in the same order as the values in order are present.

Inheritance

Constructors

SortedOrdered(SortedMapper<T, P> mapper, List<P> order, {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
order 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