OnCombined<T, R>.waiting constructor Null safety

OnCombined<T, R>.waiting(
  1. R fn(
      )
    )

    The callback is invoked only when one of the Injected models emits a notification with waiting status.

    Implementation

    factory OnCombined.waiting(R Function() fn) {
      return OnCombined._(
        onIdle: null,
        onWaiting: (_) => fn(),
        onError: null,
        onData: null,
      );
    }