addColumn method

void addColumn(
  1. String columnName, {
  2. String? tableName,
  3. SortDirection direction = SortDirection.ascending,
})

Adds an ORDER BY column to the clause.

Implementation

void addColumn(
  String columnName, {
  String? tableName,
  SortDirection direction = SortDirection.ascending,
}) {
  _orderByElements.add(
    OrderByColumn(
      columnName,
      tableName: tableName,
      direction: direction,
    ),
  );
}