StateWithMixinBuilder<T, R> constructor
const
StateWithMixinBuilder<T, R> ({
- Key? key,
- dynamic tag,
- ReactiveModel<
R> observe()?, - Widget builder(
- BuildContext context,
- ReactiveModel<
R> ? rm
- Widget builderWithChild(
- BuildContext context,
- ReactiveModel<
R> ? rm, - Widget child
- Widget? child,
- void initState(
- BuildContext context,
- ReactiveModel<
R> ? rm, - T? mix
- void dispose(
- BuildContext context,
- ReactiveModel<
R> ? rm, - T? mix
- void didChangeDependencies(
- BuildContext context,
- ReactiveModel<
R> ? rm, - T? mix
- void didUpdateWidget(
- BuildContext context,
- StateWithMixinBuilder<
T, R> oldWidget, - T? mix
- void afterInitialBuild(
- BuildContext context,
- ReactiveModel<
R> ? rm
- void afterRebuild(
- BuildContext context,
- ReactiveModel<
R> ? rm
- void didChangeAppLifecycleState(
- BuildContext context,
- AppLifecycleState state
- void didChangeLocales(
- BuildContext context,
- List<
Locale> ? locale
- 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);