modules/collection/main library

Properties

forEach ↔ void Function(dynamic, Function)
getter/setter pair
forEachRight ↔ void Function(dynamic, Function)
getter/setter pair

Functions

countBy(List list, dynamic iteratee) Map
each(dynamic collection, Function iteratee) → void
eachRight(dynamic collection, Function iteratee) → void
every(dynamic collection, dynamic iteratee) bool
filter(List list, dynamic iteratee) List
find<T>(List<T?> list, dynamic iteratee) → T?
Iterates over elements of collection, returning the first element predicate returns truthy for. The predicate is invoked with the value of the current item. Arguments
findLast(List list, dynamic iteratee) → dynamic
flatMap(List list, dynamic iteratee) List
flatMapDeep(List list, dynamic iteratee) List
flatMapDepth(List list, dynamic iteratee, {int depth = 1}) List
groupBy(List list, dynamic iteratee) Map
includes(dynamic collection, dynamic value, {int fromIndex = 0}) bool
keyBy(List list, dynamic iteratee) Map
map(List list, dynamic iteratee) List
orderBy(List list, List iteratees, [dynamic orders]) List
partition(dynamic list, dynamic iteratee) List
reduce(List list, dynamic iteratee, [dynamic accumulator]) → dynamic
reduceRight(List list, dynamic iteratee, [dynamic accumulator]) → dynamic
reject(List list, dynamic iteratee) List
sample(dynamic collection) → dynamic
sampleSize(dynamic collection, {int n = 1}) List
shuffle(List collection) List
size(dynamic collection) int
some(dynamic collection, dynamic iteratee) bool
sortBy(List list, dynamic iteratees) List