toSortOrder method
Implementation
SortOrder toSortOrder() {
switch (this) {
case 'asc':
return SortOrder.asc;
case 'dsc':
return SortOrder.dsc;
}
throw Exception('$this is not known in enum SortOrder');
}
SortOrder toSortOrder() {
switch (this) {
case 'asc':
return SortOrder.asc;
case 'dsc':
return SortOrder.dsc;
}
throw Exception('$this is not known in enum SortOrder');
}