fromString method
Implementation
SearchOrder? fromString(String val) {
final override = {
'rank': SearchOrder.rank,
'recent': SearchOrder.recent,
}[val];
// ignore: unnecessary_this
return this.contains(override) ? override : null;
}
SearchOrder? fromString(String val) {
final override = {
'rank': SearchOrder.rank,
'recent': SearchOrder.recent,
}[val];
// ignore: unnecessary_this
return this.contains(override) ? override : null;
}