update method

void update(
  1. bool newValue, {
  2. bool fire = false,
})

Implementation

void update(bool newValue, {bool fire = false}) {
  this.value = newValue;
  updateState();
  if (fire) {
    onChanged(this.value);
  }
}