RawGestureDetector constructor

const RawGestureDetector({Key key, Widget child, Map<Type, GestureRecognizerFactory<GestureRecognizer>> gestures: const {}, HitTestBehavior behavior, bool excludeFromSemantics: false })

Creates a widget that detects gestures.

By default, gesture detectors contribute semantic information to the tree that is used by assistive technology. This can be controlled using excludeFromSemantics.

Implementation

const RawGestureDetector({
  Key key,
  this.child,
  this.gestures = const <Type, GestureRecognizerFactory>{},
  this.behavior,
  this.excludeFromSemantics = false
}) : assert(gestures != null),
     assert(excludeFromSemantics != null),
     super(key: key);