on method
GestureDetector
on({
- Key? key,
- GestureTapCallback? tap,
- GestureTapCallback? tap2nd,
- GestureTapCallback? double,
- GestureLongPressCallback? long,
- GestureLongPressCallback? long2nd,
- HitTestBehavior? behavior,
- bool excludeFromSemantics = false,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
see GestureDetector
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,
);