I want to use obs before return any widget, how to set this observable action?
class TestController extends GetxController {
var condition = ''.obs;
}
class TestScreen extends StatelessWidget {
final TestController testController = Get.find();
@override
Widget build(BuildContext context) {
// How to set the if conditional statement in obx?
if (testController.condition.value != '') {
...
}
return ...
}
}