firstNotNullOfOrNull<R> method
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));