CardWidget constructor
const
CardWidget({
- Key? key,
- required ValueNotifier<
double> listenableScale, - required ValueNotifier<
double> listenablePositionTop, - required double positionTop,
- ValueNotifier<
double> ? listenableDismissedAnimation, - required CardModel model,
- required bool draggable,
- dynamic onCardTap()?,
- double? scale,
- dynamic onCardDragEnd()?,
- dynamic onCardUpdate()?,
- CardOrientation dismissOrientation = CardOrientation.both,
- CardOrientation swipeOrientation = CardOrientation.both,
- bool opacityChangeOnDrag = false,
Implementation
const CardWidget({
super.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,
});