asList<T> method

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

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

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

Implementation

Future<List<T>> asList<T>(T f(E e)) async => (await this).asList<T>(f);