title: Flutter: How to listen to variable change on GetX
body: <p>I want to change body of the widget depending on if the pressedBool is false or true.</p>
  <p>Here is GetxController I wrote.</p>
  <pre><code>    import 'package:get/state_manager.dart';
      
      class PressedState extends GetxController{
        var pressedBool = true;
        changeStatus() {
          if(pressedBool){
            pressedBool = false;            
          }
          else {
            pressedBool = true;
          }
          update();
        }
  
  }
  </code></pre>
  <p>Here is where GetX update and listen should work out to change body of the page:</p>
  <pre><code>final PressedState pressController = Get.put(PressedState());
  
  return MaterialButton(
      onPressed: () {
        pressController.changeStatus();
      },
      child: 
        pressController.pressedBool
              ? Container(...) : Container(...)), ...
  </code></pre>
  <p>How can I make GetX to listen pressedBool variable ?</p>