SwipeOptions.only constructor
const
SwipeOptions.only({})
If horizontal and vertical both are true/false then simply make the allDirections true.
Implementation
const SwipeOptions.only({
this.up = false,
this.down = false,
this.left = false,
this.right = false,
});