conditionalMap<E> method

List<E> conditionalMap<E>(
  1. E? f(
    1. T e
    )
)

Implementation

List<E> conditionalMap<E>(E? Function(T e) f) {
  return conditionalMapIndexed((_, e) => f(e));
}