registerOnTouched method

void registerOnTouched(
  1. TouchFunction fn
)
inherited

Set the function to be called when the control receives a touch event.

Implementation

void registerOnTouched(TouchFunction fn) {
  onTouched = fn;
}