AllowedSwipeDirection.symmetric constructor

AllowedSwipeDirection.symmetric({
  1. dynamic horizontal = false,
  2. dynamic vertical = false,
})

Allow the card to be swiped symmetrically in horizontal or vertical directions

Implementation

factory AllowedSwipeDirection.symmetric({
  horizontal = false,
  vertical = false,
}) =>
    AllowedSwipeDirection._(
      up: vertical,
      down: vertical,
      right: horizontal,
      left: horizontal,
    );