MultiSorter class

Sorts values based on many criteria. Used by Query.

An example:

database.collection('movies').query(
  query: Query(
    sorter: MultiSorter([
      PropertySorter('year'),
      PropertySorter('rating'),
    ]),
  ),
)
Inheritance
Annotations

Constructors

MultiSorter(List<Sorter> sorters)
const

Properties

hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sorters List<Sorter>
final

Methods

compare(Object left, Object right, {Comparator comparator}) int
override
compareSnapshot(Snapshot left, Snapshot right, {Comparator comparator}) int
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
simplify() Sorter
override
toString() String
Returns a string representation of this object.
override

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override