Obx class
The simplest reactive widget in GetX.
Just pass your Rx variable in the root scope of the callback to have it automatically registered for changes.
final _name = "GetX".obs; Obx(() => Text( _name.value )),... ;
- Inheritance
Constructors
- Obx(WidgetCallback builder)
-
const
Properties
- builder → WidgetCallback
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
) → Widget -
override
-
createElement(
ContextRequest request, GetSocket? getSocket) → StatefulElement -
Inflates this configuration to a concrete instance.
A given widget can be included in the tree zero or more times.
In particular
a given widget can be placed in the tree multiple times.
Each time a widget
is placed in the tree, it is inflated into an Element, which means a
widget that is incorporated into the tree multiple times will be inflated
multiple times.
inherited
-
createState(
) → ObxState -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited