toOrder method
Implementation
Order toOrder() {
switch (this) {
case 'ASCENDING':
return Order.ascending;
case 'DESCENDING':
return Order.descending;
}
throw Exception('$this is not known in enum Order');
}
Order toOrder() {
switch (this) {
case 'ASCENDING':
return Order.ascending;
case 'DESCENDING':
return Order.descending;
}
throw Exception('$this is not known in enum Order');
}