MixinBuilder<T extends GetxController> class
A widget that facilitates building UI components with GetX controllers and mixins.
This widget is a convenience wrapper around GetBuilder and Obx widgets from the Get package, providing an easy way to integrate GetX controllers with mixin functionality into the widget tree.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- MixinBuilder
Constructors
-
MixinBuilder({required Widget builder(T), Key? key, T? init, bool global = true, bool autoRemove = true, void initState(BindElement<
T> state)?, void dispose(BindElement<T> state)?, String? id, void didChangeDependencies(BindElement<T> state)?, void didUpdateWidget(Binder<T> oldWidget, BindElement<T> state)?}) -
Creates a MixinBuilder widget.
const
Properties
- autoRemove → bool
-
Whether the widget should be automatically removed when it is no longer needed.
final
- builder → Widget Function(T)
-
The function that builds the UI component using the provided controller.
final
-
didChangeDependencies
→ void Function(BindElement<
T> state)? -
Callback function called when the dependencies of the widget change.
final
-
didUpdateWidget
→ void Function(Binder<
T> oldWidget, BindElement<T> state)? -
Callback function called when the widget is updated with new data.
final
-
dispose
→ void Function(BindElement<
T> state)? -
Callback function called when the widget is disposed.
final
- global → bool
-
Whether the controller should be initialized globally.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
An optional identifier for the widget to distinguish it from others.
final
- init → T?
-
The initial controller instance to use.
final
-
initState
→ void Function(BindElement<
T> state)? -
Callback function called when the widget is initialized.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited