Sort class

Defines sorting for a single field.

Constructors

Sort(String field, [Direction direction = Direction.asc])
const
Sort.asc(String field)
Creates an ascending sort.
const
Sort.desc(String field)
Creates a descending sort.
const

Properties

direction Direction
The direction to sort.
final
field String
The field to sort by.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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