onTap method
Widget
onTap(
- GestureTapCallback? onTap, {
- Key? key,
- HitTestBehavior? behavior,
- bool excludeFromSemantics = false,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
点击
Implementation
Widget onTap(
GestureTapCallback? onTap, {
Key? key,
HitTestBehavior? behavior,
bool excludeFromSemantics = false,
DragStartBehavior dragStartBehavior = DragStartBehavior.start,
}) =>
gestures(
key: key,
onTap: onTap,
behavior: behavior ?? HitTestBehavior.opaque,
excludeFromSemantics: excludeFromSemantics,
dragStartBehavior: dragStartBehavior,
);