RawGestureDetector constructor Null safety

const RawGestureDetector(
  1. {Key? key,
  2. Widget? child,
  3. Map<Type, GestureRecognizerFactory<GestureRecognizer>> gestures = const <Type, GestureRecognizerFactory>{},
  4. HitTestBehavior? behavior,
  5. bool excludeFromSemantics = false,
  6. SemanticsGestureDelegate? semantics}
)

Creates a widget that detects gestures.

Gesture detectors can contribute semantic information to the tree that is used by assistive technology. The behavior can be configured by semantics, or disabled with excludeFromSemantics.

Implementation

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