dispatchEvent method
void
dispatchEvent(
- Event event
)
inherited
Implementation
@override
void dispatchEvent(Event event) {
super.dispatchEvent(event);
if (event.currentTarget != null) {
_eventResponder(event);
// Dispatch listener for widget.
if (elementManager.gestureListener != null) {
if (elementManager.gestureListener?.onTouchStart != null && event.type == EVENT_TOUCH_START) {
elementManager.gestureListener?.onTouchStart!(event as TouchEvent);
}
if (elementManager.gestureListener?.onTouchMove != null && event.type == EVENT_TOUCH_MOVE) {
elementManager.gestureListener?.onTouchMove!(event as TouchEvent);
}
if (elementManager.gestureListener?.onTouchEnd != null && event.type == EVENT_TOUCH_END) {
elementManager.gestureListener?.onTouchEnd!(event as TouchEvent);
}
}
}
}