I am new with getX and I don't understand what is the purpose of GetX Controller. Based on my understanding, It basically hold variables and this is where everything changes inside the state. Can someone explain further
Asked
Active
Viewed 291 times
0
-
Please provide enough code so others can better understand or reproduce the problem. – Community Mar 05 '22 at 05:37
1 Answers
1
Rather than holding variables for state change, it provides observability. It allows declaring a variable as observable, which is by using .obs and the whole class elements can be under control or operatable. To make it work you should initialize it by using Get.put or the LazyPut method.
For more, refer this video.

Jagal R Nath
- 316
- 5
- 14