handle method
Implementation
@override
void handle(GestureType type, double x, double y) {
switch (type) {
case GestureType.pressIn:
NativeGestureHandle.handlePressIn(_context, _id, _rootId);
break;
case GestureType.pressOut:
NativeGestureHandle.handlePressOut(_context, _id, _rootId);
break;
case GestureType.touchDown:
NativeGestureHandle.handleTouchDown(_context, _id, _rootId, x, y);
break;
case GestureType.touchMove:
NativeGestureHandle.handleTouchMove(_context, _id, _rootId, x, y);
break;
case GestureType.touchEnd:
NativeGestureHandle.handleTouchEnd(_context, _id, _rootId, x, y);
break;
case GestureType.touchCancel:
NativeGestureHandle.handleTouchCancel(_context, _id, _rootId, x, y);
break;
case GestureType.interceptTouchEvent:
break;
case GestureType.interceptPullUpEvent:
break;
case GestureType.click:
// ignore, already resolve by other
break;
case GestureType.longClick:
// ignore, already resolve by other
break;
}
}