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<
Object> expression, OrderingMode mode = OrderingMode.asc, NullsOrder? nulls}) -
Creates an ordering term by the
expression, themode(defaults to ascending) and thenulls. -
OrderingTerm.asc(Expression<
Object> expression, {NullsOrder? nulls}) -
Creates an ordering term that sorts for ascending values
of
expressionand thenulls.factory -
OrderingTerm.desc(Expression<
Object> expression, {NullsOrder? nulls}) -
Creates an ordering term that sorts for descending values
of
expressionand thenulls.factory - OrderingTerm.random()
-
Creates an ordering term that sorts rows in a random order
using sqlite random function.
factory
Properties
-
expression
→ Expression<
Object> -
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
- nulls → NullsOrder?
-
How to order NULLs.
When nulls is
null, then it's ignored.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