QueryOrder constructor

QueryOrder({
  1. required String field,
  2. required String direction,
})

Implementation

QueryOrder({required this.field, required this.direction}) {
  assert(direction == 'asc' || direction == 'desc');
}