ListExtensions<T> extension

on

Methods

replaceAll(Iterable<T> newData) → void
Replaces all data in the list with newData
replaceWhere(bool where(T), T newData, {int? count}) → void
Replaces all items that matches where with newData
sortBy<R>(Comparable<R>? by(T item), {bool ascending = true}) → void
Sorts the list based on the comparable returned by by. By default the sorting is ascending
sortBy2<R, V>(Comparable<R>? by(T item), Comparable<V>? by2(T item), {bool ascending = true}) → void
Sorts the list by comparing first comparing using by and if the items are equal, by comparing them using by2. By default the sorting is ascending