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