map<T, R> static method

List<R> Function(Iterable<T>) map<T, R>(
  1. R mapper(
    1. T
    )
)

Implementation

static List<R> Function(Iterable<T>) map<T, R>(
  R Function(T) mapper,
) {
  return (Iterable<T> items) {
    return items.map(mapper).toList();
  };
}