mapNotNull<R extends Object> method

List<R> mapNotNull<R extends Object>(
  1. R? mapper(
    1. V from
    )
)

Implementation

List<R> mapNotNull<R extends Object>(R? mapper(V from)) {
  return [
    for (var i in this)
      if (i != null) mapper(i),
  ].notNullList();
}