Set the function to be called when the control receives a change event.
@override void registerOnChange(ChangeFunction<String> fn) { this.onChange = fn; }