FetchResultStream<T> typedef

FetchResultStream<T> = Stream<Result<T>> Function(StreamNotifier<T> notifier)

Signature for functions that fetches streaming Results for a StreamNotifier.

Use this fetcher function with the StreamNotifier.result constructor, when you need to control the result type in the fetch operation.

Implementation

typedef FetchResultStream<T> = Stream<Result<T>> Function(StreamNotifier<T> notifier);