registerOnTouched method
Set the function to be called when the control receives a touch event.
Implementation
void registerOnTouched(TouchFunction fn) {
onTouched = fn;
}
Set the function to be called when the control receives a touch event.
void registerOnTouched(TouchFunction fn) {
onTouched = fn;
}