CompactMap<T> extension
- on
-
- List<
T>
- List<
Methods
-
compactMap<
E> (E? f(T element)) → List< E> -
Available on List<
Maps each element of the list using the provided functionT> , provided by the CompactMap extensionfand returns a new list containing only the non-null results.