GetX<T extends DisposableInterface> constructor
Null safety
const
GetX<T extends DisposableInterface>(- {String? tag,
- required GetXControllerBuilder<T> builder,
- bool global = true,
- bool autoRemove = true,
- void initState(
- GetXState<T> state
)?,
- bool assignId = false,
- void dispose(
- GetXState<T> state
)?,
- void didChangeDependencies(
- GetXState<T> state
)?,
- void didUpdateWidget(
- GetX<DisposableInterface> oldWidget,
- GetXState<T> state
)?,
- 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
});