StateWithMixinBuilder<T, R> constructor

const StateWithMixinBuilder<T, R>({
  1. Key? key,
  2. dynamic tag,
  3. ReactiveModel<R> observe()?,
  4. Widget builder(
    1. BuildContext context,
    2. ReactiveModel<R>? rm
    )?,
  5. Widget builderWithChild(
    1. BuildContext context,
    2. ReactiveModel<R>? rm,
    3. Widget child
    )?,
  6. Widget? child,
  7. void initState(
    1. BuildContext context,
    2. ReactiveModel<R>? rm,
    3. T? mix
    )?,
  8. void dispose(
    1. BuildContext context,
    2. ReactiveModel<R>? rm,
    3. T? mix
    )?,
  9. void didChangeDependencies(
    1. BuildContext context,
    2. ReactiveModel<R>? rm,
    3. T? mix
    )?,
  10. void didUpdateWidget(
    1. BuildContext context,
    2. StateWithMixinBuilder<T, R> oldWidget,
    3. T? mix
    )?,
  11. void afterInitialBuild(
    1. BuildContext context,
    2. ReactiveModel<R>? rm
    )?,
  12. void afterRebuild(
    1. BuildContext context,
    2. ReactiveModel<R>? rm
    )?,
  13. void didChangeAppLifecycleState(
    1. BuildContext context,
    2. AppLifecycleState state
    )?,
  14. void didChangeLocales(
    1. BuildContext context,
    2. List<Locale>? locale
    )?,
  15. required MixinWith mixinWith,
})

StateBuilder that can be mixin with one of the predefined mixin in mixinWith

Implementation

const StateWithMixinBuilder({
  Key? key,
  this.tag,
  this.observe,
  // this.observeMany,
  this.builder,
  this.builderWithChild,
  this.child,
  this.initState,
  this.dispose,
  this.didChangeDependencies,
  this.didUpdateWidget,
  this.afterInitialBuild,
  this.afterRebuild,
  this.didChangeAppLifecycleState,
  this.didChangeLocales,
  required this.mixinWith,
})  : assert(builder != null || builderWithChild != null, '''

| ***Builder not defined***
| You have to define either 'builder' or 'builderWithChild' parameter.
| Use 'builderWithChild' with 'child' parameter.
| If 'child' is null use 'builder' instead.

      '''),
      assert(builderWithChild == null || child != null, '''
| ***child is null***
| You have defined the 'builderWithChild' parameter without defining the child parameter.
| Use 'builderWithChild' with 'child' parameter.
| If 'child' is null use 'builder' instead.

      '''),
      super(key: key);