OnCombined<T, R>.data constructor Null safety

OnCombined<T, R>.data(
  1. R fn(
    1. T state
    )
)

The callback is invoked only when all the Injected models are in the onData status.

Implementation

factory OnCombined.data(R Function(T state) fn) {
  return OnCombined._(
    onIdle: null,
    onWaiting: null,
    onError: null,
    onData: fn,
    // onType: _OnType.onData,
  );
}