map<U> method

List<U> map<U>(
  1. U mapper(
    1. T value
    )
)

Maps each element in the list to a new value using the provided mapper function.

Implementation

List<U> map<U>(U Function(T value) mapper) {
  return (_value as List<T>).map(mapper).toList();
}