GetX<T extends GetLifeCycleMixin> constructor
const
GetX<T extends GetLifeCycleMixin> ({
- Key? key,
- String? tag,
- required GetXControllerBuilder<
T> builder, - bool global = true,
- bool autoRemove = true,
- void initState(
- GetXState<
T> state
- GetXState<
- bool assignId = false,
- void dispose(
- GetXState<
T> state
- GetXState<
- void didChangeDependencies(
- GetXState<
T> state
- GetXState<
- void didUpdateWidget(
- GetX<
GetLifeCycleMixin> oldWidget, - GetXState<
T> state
- GetX<
- T? init,
Constructs a GetX widget.
The builder
argument is required and must not be null.
Implementation
const GetX({
super.key,
this.tag,
required this.builder,
this.global = true,
this.autoRemove = true,
this.initState,
this.assignId = false,
this.dispose,
this.didChangeDependencies,
this.didUpdateWidget,
this.init,
});