OnErrorFinishWith<T> extension

on

Methods

onErrorFinishWith([T? onError(Object error)?]) Stream<T>

Available on Stream<T>, provided by the OnErrorFinishWith extension

Cancels subscription after first error and optionally emits a value. The error is absorbed and not forwarded to listeners but you can log it or handle it in the onError callback.