WhenRebuilderOr<T> constructor Null safety

const WhenRebuilderOr<T>(
  1. {Key? key,
  2. Widget onIdle(
      )?,
    1. Widget onWaiting(
        )?,
      1. Widget onError(
        1. dynamic error
        )?,
      2. Widget onData(
        1. T data
        )?,
      3. required Widget builder(
        1. BuildContext context,
        2. ReactiveModel<T> model
        ),
      4. ReactiveModel<T> observe(
          )?,
        1. List<ReactiveModel Function()>? observeMany,
        2. Object watch(
          1. ReactiveModel<T> model
          )?,
        3. bool shouldRebuild(
          1. ReactiveModel<T>
          )?,
        4. void initState(
          1. BuildContext,
          2. ReactiveModel<T>
          )?,
        5. void dispose(
          1. BuildContext,
          2. ReactiveModel<T>
          )?,
        6. dynamic onSetState(
          1. BuildContext context,
          2. ReactiveModel<T> model
          )?,
        7. void didUpdateWidget(
          1. BuildContext,
          2. ReactiveModel<T>,
          3. WhenRebuilderOr<T>
          )?}
        )

        Just like WhenRebuilder but you do not have to define all possible states.

        Implementation

        const WhenRebuilderOr({
          Key? key,
          this.onIdle,
          this.onWaiting,
          this.onError,
          this.onData,
          required this.builder,
          this.observe,
          this.observeMany,
          this.watch,
          this.shouldRebuild,
          this.initState,
          this.dispose,
          this.onSetState,
          this.didUpdateWidget,
        }) : super(key: key);