gestureIsSupported method

  1. @protected
bool gestureIsSupported(
  1. GestureType? gestureType, {
  2. bool outer = false,
})

Implementation

@protected
bool gestureIsSupported(GestureType? gestureType, {bool outer = false}) {
  switch (gestureType) {
    case GestureType.rotate:
      return _rotateEnabled;

    case GestureType.scale:
      return widget.scaleEnabled;

    case GestureType.pan:
    case null:
      if (widget.noMouseDragScroll && outer) {
        return false;
      }
      return widget.panEnabled;
  }
}