OrderOption constructor
const
OrderOption({
- OrderOptionType type = OrderOptionType.createDate,
- 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 totrue
, 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,
});