sortedByDesc method

Iterable<E> sortedByDesc(
  1. Comparable? key(
    1. E? e
    )
)

Sort list desc use to Comparable colums

Implementation

Iterable<E> sortedByDesc(Comparable? key(E? e)) => toList()
  ..sort((b, a) => (a != null && b != null ? key(a)!.compareTo(key(b)) : 0));