toggle method

void toggle()

lets you toggle the internal value of ObservableBool

Implementation

void toggle() {
  runInAction(() => value = !value);
}