firstNotNullOf<R> method
Returns the first non-null value produced by transform
function being
applied to entries of this Map in iteration order, or throws
NoSuchElementException if no non-null value was produced.
Implementation
R firstNotNullOf<R>(R? Function(MapEntry<K, V> entry) transform) =>
entries.firstNotNullOf((entry) => transform(entry));