OrderingTerm class
A single term in a OrderBy clause. The priority of this term is determined by its position in OrderBy.terms.
Constructors
- OrderingTerm({required Expression expression, OrderingMode mode = OrderingMode.asc})
-
Creates an ordering term by the
expressionand themode(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 - OrderingTerm.random()
-
Creates an ordering term to get a number of random rows
using sqlite random function.
factory
Properties
- expression → Expression
-
The expression after which the ordering should happen
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mode → OrderingMode
-
The ordering mode (ascending or descending).
final
- 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
-
writeInto(
GenerationContext context) → void -
Writes this component into the
contextby 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