CardWidget constructor

const CardWidget({
  1. Key? key,
  2. required ValueNotifier<double> listenableScale,
  3. required ValueNotifier<double> listenablePositionTop,
  4. required double positionTop,
  5. ValueNotifier<double>? listenableDismissedAnimation,
  6. required CardModel model,
  7. required bool draggable,
  8. dynamic onCardTap(
    1. CardModel
    )?,
  9. double? scale,
  10. dynamic onCardDragEnd(
    1. CardOrientation
    )?,
  11. dynamic onCardUpdate(
    1. Offset
    )?,
  12. CardOrientation dismissOrientation = CardOrientation.both,
  13. CardOrientation swipeOrientation = CardOrientation.both,
  14. bool opacityChangeOnDrag = false,
})

Implementation

const CardWidget({
  Key? key,
  required this.listenableScale,
  required this.listenablePositionTop,
  required this.positionTop,
  this.listenableDismissedAnimation,
  required this.model,
  required this.draggable,
  this.onCardTap,
  this.scale,
  this.onCardDragEnd,
  this.onCardUpdate,
  this.dismissOrientation = CardOrientation.both,
  this.swipeOrientation = CardOrientation.both,
  this.opacityChangeOnDrag = false,
}) : super(key: key);