toSort method
Implementation
Sort toSort() {
switch (this) {
case 'ASC':
return Sort.asc;
case 'DESC':
return Sort.desc;
}
throw Exception('$this is not known in enum Sort');
}
Sort toSort() {
switch (this) {
case 'ASC':
return Sort.asc;
case 'DESC':
return Sort.desc;
}
throw Exception('$this is not known in enum Sort');
}