sortDescBy method

List<Map<T, T>> sortDescBy(
  1. String key
)

Sorts a list of maps by the given key in descending order.

Example:

final descendingSortedMaps = list.sortDescBy("price");

Implementation

List<Map<T, T>> sortDescBy(String key) => sortBy(key, isDesc: true);