title: Flutter and Getx: How an observable emit changes
body: <p>I have a little bar that changes color when the user move the container and when the user stop touching the container. I´m using a Listener widget and the functions onPointerMove which calls a GetxController with value of true and onPointerUp with value of false so the color of the container changes according to a RxBool in the controller.<br>
  My question is: while calling onPointerMove the RxBool changes to a true value but I don´t know if the value is always emitted even though it´s the same, because then my widget will redraw every time; or if the value doesn´t emmit anything because it´s the same.</p>
  <p>Here is the controller</p>
  <pre><code>  RxBool isPressing = false.obs;
  
    void changeColor(bool i) =&gt; i ? isPressing.value = true : isPressing.value = false;
  </code></pre>
  <p>Here is the listener widget</p>
  <pre><code> Listener(
        onPointerMove: (PointerEvent e) =&gt; _touchController.changeColor(true),
        onPointerUp: (PointerUpEvent e) =&gt; _touchController.changeColor(false),
        .
        .
        .
            children: [
              Obx(() =&gt; Container(
                height: 100,
                width: 4,
                decoration: BoxDecoration(
                  color: _touchController.isPressing.value ? primaryColor : Colors.white,
                  borderRadius: BorderRadius.circular(10),
                ),
              )),
  </code></pre>