firstNotNullOfOrNull<R> method

R? firstNotNullOfOrNull<R>(
  1. R? transform(
    1. MapEntry<K, V> entry
    )
)

Returns the first non-null value produced by transform function being applied to entries of this Map in iteration order, or null if no non-null value was produced.

Implementation

R? firstNotNullOfOrNull<R>(R? Function(MapEntry<K, V> entry) transform) =>
    entries.firstNotNullOfOrNull((entry) => transform(entry));