MyStatefulWidget<T> constructor

MyStatefulWidget<T>({
  1. required Key? key,
  2. required List<ReactiveModelImp> observers(
    1. BuildContext context
    ),
  3. required Widget builder(
    1. BuildContext,
    2. SnapState<T>,
    3. ReactiveModel<T>
    )?,
  4. void onSetState(
    1. BuildContext,
    2. SnapState<T>,
    3. ReactiveModel<T>
    )?,
  5. SideEffects<T>? sideEffects,
  6. ShouldRebuild? shouldRebuild,
  7. void didChangeDependencies(
    1. BuildContext context,
    2. ReactiveModel<T>? model
    )?,
  8. void didUpdateWidget(
    1. BuildContext context,
    2. ReactiveModel<T>? model,
    3. MyStatefulWidget<T> oldWidget
    )?,
  9. void initState(
    1. BuildContext context,
    2. ReactiveModel<T>? model
    )?,
  10. void dispose(
    1. BuildContext context,
    2. ReactiveModel<T>? model
    )?,
  11. String? debugPrintWhenRebuild,
})

Implementation

MyStatefulWidget({
  required Key? key,
  required this.observers,
  required Widget Function(BuildContext, SnapState<T>, ReactiveModel<T>)?
      builder,
  this.onSetState,
  this.sideEffects,
  this.shouldRebuild,
  this.didChangeDependencies,
  this.didUpdateWidget,
  this.initState,
  this.dispose,
  this.debugPrintWhenRebuild,
})  : _builder = builder,
      super(key: key);