GetX<T extends DisposableInterface> constructor

const GetX<T extends DisposableInterface>({
  1. Key? key,
  2. String? tag,
  3. required GetXControllerBuilder<T> builder,
  4. bool global = true,
  5. bool autoRemove = true,
  6. void initState(
    1. GetXState<T> state
    )?,
  7. bool assignId = false,
  8. void dispose(
    1. GetXState<T> state
    )?,
  9. void didChangeDependencies(
    1. GetXState<T> state
    )?,
  10. void didUpdateWidget(
    1. GetX<DisposableInterface> oldWidget,
    2. GetXState<T> state
    )?,
  11. T? init,
})

Implementation

const GetX({
  Key? key,
  this.tag,
  required this.builder,
  this.global = true,
  this.autoRemove = true,
  this.initState,
  this.assignId = false,
  //  this.stream,
  this.dispose,
  this.didChangeDependencies,
  this.didUpdateWidget,
  this.init,
  // this.streamController
}) : super(key: key);