OrderBy<T> constructor

OrderBy<T>(
  1. String _field, {
  2. bool descending = false,
})

Order the queried data in ascending or descending order. Provide the field that the data is needed to ordered with. descending will determine the order.

Same as Query.orderBy. Look at firestore documentation for more.

Implementation

OrderBy(this._field, {this.descending = false});