whereSuccess method

Stream<T> whereSuccess()

Finds the ResultSuccess as unwraps the ResultSuccess.data from it.

It filters the other types of Result such as ResultError and ResultLoading.

Implementation

Stream<T> whereSuccess() =>
    whereType<ResultSuccess<T>>().map((data) => data.data);