DraggableCard constructor

DraggableCard({
  1. Widget? card,
  2. Widget? likeTag,
  3. Widget? nopeTag,
  4. Widget? superLikeTag,
  5. bool isDraggable = true,
  6. dynamic onSlideUpdate(
    1. double distance
    )?,
  7. dynamic onSlideOutComplete(
    1. SlideDirection? direction
    )?,
  8. SlideDirection? slideTo,
  9. dynamic onSlideRegionUpdate(
    1. SlideRegion? slideRegion
    )?,
  10. bool upSwipeAllowed = false,
  11. bool leftSwipeAllowed = true,
  12. bool rightSwipeAllowed = true,
  13. bool isBackCard = false,
  14. EdgeInsets padding = EdgeInsets.zero,
})

Implementation

DraggableCard(
    {this.card,
    this.likeTag,
    this.nopeTag,
    this.superLikeTag,
    this.isDraggable = true,
    this.onSlideUpdate,
    this.onSlideOutComplete,
    this.slideTo,
    this.onSlideRegionUpdate,
    this.upSwipeAllowed = false,
    this.leftSwipeAllowed = true,
    this.rightSwipeAllowed = true,
    this.isBackCard = false,
    this.padding = EdgeInsets.zero});