TCard constructor

const TCard({
  1. required List<Widget> cards,
  2. TCardController? controller,
  3. ForwardCallback? onForward,
  4. BackCallback? onBack,
  5. EndCallback? onEnd,
  6. bool lockYAxis = false,
  7. double slideSpeed = 20,
  8. int delaySlideFor = 500,
  9. 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);