gestureRecognizers property

Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers
final

Which gestures should be consumed by the youtube player.

It is possible for other gesture recognizers to be competing with the player on pointer events, e.g if the player is inside a ListView the ListView will want to handle vertical drags. The player will claim gestures that are recognized by any of the recognizers on this list.

By default vertical and horizontal gestures are absorbed by the player. Passing an empty set will ignore the defaults.

This is ignored on web.

Implementation

final Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers;