Gestures constructor
Gestures({
- HitTestBehavior? behavior,
- bool excludeFromSemantics = false,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
Apply gestures to a Division widgets
Parent(
gesture: Gestures()
..onTap(() => print('Widget pressed!'))
..onLongPress(() => print('Widget longpress)),
child: Text('Some text'),
)
Implementation
Gestures(
{this.behavior,
this.excludeFromSemantics = false,
this.dragStartBehavior = DragStartBehavior.start})
: this.gestureModel = GestureModel(
behavior: behavior,
excludeFromSemantics: excludeFromSemantics,
dragStartBehavior: dragStartBehavior);