getAll<T> method
Returns all items for given test
.
Implementation
List<T> getAll<T>({Predicate? test}) {
assert(test != null || T != dynamic);
if (test == null && T != dynamic) {
test = (item) => item is T;
}
final list = _args.values.where(test!).toList();
if (T != dynamic) {
return list.cast<T>();
}
return list as List<T>;
}