Sort class abstract

Representing sort arguments in a uniform, abstract way.

To allow different DatabaseAdapter implementations to interpret or implement ordering in different ways (e.g. convert to SQL statements) this is a uniform representation of sort arguments.

Implementers

Constructors

Sort()
const

Properties

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

Methods

linear() List<ExpressionSort>
Returns a linear list of ExpressionSort.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reduce() Sort
Tries to simplify the Sort structure to avoid redundancy.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

asc(dynamic expression) Sort
Convenience method for creating an ascending ExpressionSort.
desc(dynamic expression) Sort
Convenience method for creating a descending ExpressionSort.
followedBy(Iterable<Sort> sorts) Sort

Constants

empty → const Sort