asList<T> method

List<T> asList<T>(
  1. T f(
    1. E e
    )
)

Returns a new List of Type by applying the transformation function.

Shorthand for Iterable<T>.map<T>(f).toList();

Implementation

List<T> asList<T>(T f(E e)) => map<T>(f).toList();