sortByDescending method
Sorts the list in descending order of the object's field value.
Implementation
void sortByDescending(Comparable Function(E e) getVal) =>
sort((a, b) => getVal(b).compareTo(getVal(a)));
Sorts the list in descending order of the object's field value.
void sortByDescending(Comparable Function(E e) getVal) =>
sort((a, b) => getVal(b).compareTo(getVal(a)));