needHandle method

  1. @override
bool needHandle(
  1. GestureType type
)
override

Implementation

@override
bool needHandle(GestureType type) {
  var result = _gestureTypes.contains(type);
  if (!result &&
      !(type == GestureType.interceptTouchEvent) &&
      !(type == GestureType.interceptPullUpEvent)) {
    if (needHandle(GestureType.interceptTouchEvent) ||
        needHandle(GestureType.interceptPullUpEvent)) {
      return true;
    }
  }

  return result;
}