OrderByBuilder class

A builder for creating ORDER BY clauses.

Available extensions

Constructors

OrderByBuilder()

Properties

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

Methods

addColumn(String columnName, {String? tableName, SortDirection direction = SortDirection.ascending}) → void
Adds an ORDER BY column to the clause.
asc(String columnName, {String? tableName}) → void

Available on OrderByBuilder, provided by the OrderByBuilderExtensions extension

Adds an ascending ORDER BY column to the clause.
ascWithTable(String tableName, String columnName) → void

Available on OrderByBuilder, provided by the OrderByBuilderExtensions extension

Adds an ascending ORDER BY column to the clause with table name.
build() List<OrderByElement>
Builds the ORDER BY clause.
desc(String columnName, {String? tableName}) → void

Available on OrderByBuilder, provided by the OrderByBuilderExtensions extension

Adds a descending ORDER BY column to the clause.
descWithTable(String tableName, String columnName) → void

Available on OrderByBuilder, provided by the OrderByBuilderExtensions extension

Adds a descending ORDER BY column to the clause with table name.
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