whereError method
Finds the ResultError as unwraps the ResultError.error from it.
It filters the other types of Result such as ResultSuccess and ResultLoading.
Implementation
Stream<Exception> whereError() =>
whereType<ResultError<T>>().map((error) => error.error);