OrderingTerm.desc constructor

OrderingTerm.desc(
  1. Expression<Object> expression, {
  2. NullsOrder? nulls,
})

Creates an ordering term that sorts for descending values of expression and the nulls.

Implementation

factory OrderingTerm.desc(Expression expression, {NullsOrder? nulls}) {
  return OrderingTerm(
    expression: expression,
    mode: OrderingMode.desc,
    nulls: nulls,
  );
}