Write a new value to the element.
@override void writeValue(bool isChecked) { // Need to ignore the null on init. //if (isChecked == null) return; _setStates(checked: isChecked, emitEvent: false); }