sortByDescending method
void
sortByDescending(
- dynamic selector(
- E element
根据 propertyGet 获取元素值,并以此排序(降序)。
举例:
Implementation
// List< MapEntry> list = [
// MapEntry(10, 0),
// MapEntry(0, 0),
// MapEntry(5, 0),
// ];
// list.sortByDescending((it) => it.key); // [MapEntry(10: 0), MapEntry(5: 0), MapEntry(0: 0)]
/// ```
void sortByDescending(dynamic Function(E element) selector) => sortedByDescending(selector);