as<T> method

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

Returns a List of Type by applying the transformation function.

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

Implementation

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