toList<T, C extends Comparable<C> > static method
List<ContextualResource<T, C> >
toList<T, C extends Comparable<C> >(
- Iterable<
T> resources, - C? context(
- T resource
Implementation
static List<ContextualResource<T, C>> toList<T, C extends Comparable<C>>(
Iterable<T> resources, C? Function(T resource) context) =>
resources.map((r) => ContextualResource<T, C>(r, context)).toList();