combine3<A, B, C, R> static method
CombineLatestNotifier<dynamic, R>
combine3<A, B, C, R>(
- ResultListenable<
A> notifierA, - ResultListenable<
B> notifierB, - ResultListenable<
C> notifierC, { - required R combineData(
- A a,
- B b,
- C c
- R? data,
- Result<
R> ? result, - Duration? expiration,
- ResultNotifierCallback<
R> ? onReset, - R onErrorReturn(
- Object? error
- bool autoReset = false,
- bool refreshOnError = false,
- bool ignoreLoading = false,
Constructs a CombineLatestNotifier that combines the data from the provided notifiers using the specified
combineData
function.
Implementation
static CombineLatestNotifier<dynamic, R> combine3<A, B, C, R>(
ResultListenable<A> notifierA,
ResultListenable<B> notifierB,
ResultListenable<C> notifierC, {
required R Function(A a, B b, C c) combineData,
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 CombineLatestNotifier<dynamic, R>(
[notifierA, notifierB, notifierC],
combineData: (data) => combineData(data[0] as A, data[1] as B, data[2] as C),
data: data,
result: result,
expiration: expiration,
onReset: onReset,
onErrorReturn: onErrorReturn,
autoReset: autoReset,
refreshOnError: refreshOnError,
ignoreLoading: ignoreLoading,
);
}