on method

GestureDetector on({
  1. Key? key,
  2. GestureTapCallback? tap,
  3. GestureTapCallback? tap2nd,
  4. GestureTapCallback? double,
  5. GestureLongPressCallback? long,
  6. GestureLongPressCallback? long2nd,
  7. HitTestBehavior? behavior,
  8. bool excludeFromSemantics = false,
  9. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
})

Implementation

GestureDetector on({
  Key? key,
  GestureTapCallback? tap,
  GestureTapCallback? tap2nd,
  GestureTapCallback? double,
  GestureLongPressCallback? long,
  GestureLongPressCallback? long2nd,
  HitTestBehavior? behavior,
  bool excludeFromSemantics = false,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
}) =>
    GestureDetector(
      key: key,
      onTap: tap,
      onSecondaryTap: tap2nd,
      onDoubleTap: double,
      onLongPress: long,
      onSecondaryLongPress: long2nd,
      behavior: behavior,
      excludeFromSemantics: excludeFromSemantics,
      dragStartBehavior: dragStartBehavior,
      child: this,
    );