map<S> method

Vector<S> map<S>(
  1. S callback(
    1. int index,
    2. T value
    ), [
  2. DataType<S>? dataType
])

Returns a read-only view on this Vector with all its elements lazily converted by calling the provided transformation callback.

Implementation

Vector<S> map<S>(S Function(int index, T value) callback,
        [DataType<S>? dataType]) =>
    transform<S>(callback, dataType: dataType);