OrderOption constructor

const OrderOption({
  1. OrderOptionType type = OrderOptionType.createDate,
  2. bool asc = false,
})

Creates a new instance of the OrderOption class.

  • type: An optional parameter, defaults to OrderOptionType.createDate. Specifies the type of order to apply.
  • asc: An optional parameter, defaults to false. If set to true, the result will be sorted in ascending order. Otherwise, it will be sorted in descending order.

Implementation

const OrderOption({
  this.type = OrderOptionType.createDate,
  this.asc = false,
});