toggle method

void toggle()

Toggles the boolean value of the Rx object between true and false.

Implementation

void toggle() {
  if (value != null) {
    call(!value!);
    // return this;
  }
}