CustomGestureDetector constructor Null safety

CustomGestureDetector(
  1. {Key? key,
  2. required Widget child,
  3. required List<Gesture> gestures,
  4. Function? onGestureStart,
  5. required dynamic onGestureEnd(
    1. bool success
    ),
  6. HitTestBehavior? behavior}
)

Implementation

CustomGestureDetector({
  Key? key,
  required Widget child,
  required this.gestures,
  this.onGestureStart,
  required this.onGestureEnd,
  this.behavior,
})  : this.child = child,
      assert(gestures.length > 0),
      super(key: key);