Gestures constructor

Gestures({
  1. HitTestBehavior? behavior,
  2. bool excludeFromSemantics = false,
  3. 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);