GetX<T extends DisposableInterface> constructor Null safety

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

Implementation

const GetX({
  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
});