firstOrNull
The terminal operator that returns the first element emitted by the flow and then cancels flow's collection. Returns null
if the flow was empty.
The terminal operator that returns the first element emitted by the flow matching the given predicate and then cancels flow's collection. Returns null
if the flow did not contain an element matching the predicate.