TCard constructor
const
TCard({
- required List<
Widget> cards, - TCardController? controller,
- ForwardCallback? onForward,
- BackCallback? onBack,
- EndCallback? onEnd,
- bool lockYAxis = false,
- double slideSpeed = 20,
- int delaySlideFor = 500,
- Size size = const Size(380, 400),
Implementation
const TCard({
required this.cards,
this.controller,
this.onForward,
this.onBack,
this.onEnd,
this.lockYAxis = false,
this.slideSpeed = 20,
this.delaySlideFor = 500,
this.size = const Size(380, 400),
}) : assert(cards != null),
assert(cards.length > 0);