registerOnChange method
Set the function to be called when the control receives a change event.
Implementation
void registerOnChange(ChangeFunction<T> fn) {
onChange = fn;
}
Set the function to be called when the control receives a change event.
void registerOnChange(ChangeFunction<T> fn) {
onChange = fn;
}