OrderingTerm class Null safety

A single term in a OrderBy clause. The priority of this term is determined by its position in OrderBy.terms.

Inheritance

Constructors

OrderingTerm({required Expression expression, OrderingMode mode = OrderingMode.asc})
Creates an ordering term by the expression and the mode (defaults to ascending).
OrderingTerm.asc(Expression expression)
Creates an ordering term that sorts for ascending values of expression.
factory
OrderingTerm.desc(Expression expression)
Creates an ordering term that sorts for descending values of expression.
factory

Properties

expression Expression
The expression after which the ordering should happen
final
hashCode int
The hash code for this object. [...]
read-only, inherited
mode OrderingMode
The ordering mode (ascending or descending).
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
writeInto(GenerationContext context) → void
Writes this component into the context by writing to its GenerationContext.buffer or by introducing bound variables. When writing into the buffer, no whitespace around the this component should be introduced. When a component consists of multiple composed component, it's responsible for introducing whitespace between its child components.
override

Operators

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