toList<T, C extends Comparable<C>> static method

List<ContextualResource<T, C>> toList<T, C extends Comparable<C>>(
  1. Iterable<T> resources,
  2. C? context(
    1. 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();