1. @override
dynamic onSetValue(value)

Callback used to accept or reject a value when it is set. Return true to reject the value, and false to accept it.

Source

@override
onSetValue(value) {
  if (onValueSetCallback != null) {
    return onValueSetCallback(value);
  }
  return super.onSetValue(value);
}