streamEffect<R> method
EffectNotifier<T, R>
streamEffect<R>(
- StreamEffect<
T, R> effect, { - R? data,
- Result<
R> ? result, - Duration? expiration,
- ResultNotifierCallback<
R> ? onReset, - R onErrorReturn(
- Object? error
- bool autoReset = false,
- bool refreshOnError = false,
- bool ignoreLoading = false,
Creates a new asynchronous EffectNotifier that executes the provided strean effect the data of this notifier changes.
See StreamEffectNotifier.
Implementation
EffectNotifier<T, R> streamEffect<R>(
StreamEffect<T, R> effect, {
R? data,
Result<R>? result,
Duration? expiration,
ResultNotifierCallback<R>? onReset,
R Function(Object? error)? onErrorReturn,
bool autoReset = false,
bool refreshOnError = false,
bool ignoreLoading = false,
}) {
return StreamEffectNotifier(
this,
effect: effect,
data: data,
result: result,
expiration: expiration,
onReset: onReset,
onErrorReturn: onErrorReturn,
autoReset: autoReset,
refreshOnError: refreshOnError,
ignoreLoading: ignoreLoading,
);
}