FlipCard constructor

const FlipCard({
  1. required Widget front,
  2. required Widget back,
  3. Key? key,
  4. int speed = 500,
  5. VoidCallback? onFlip,
  6. BoolCallback? onFlipDone,
  7. FlipDirection direction = FlipDirection.HORIZONTAL,
  8. FlipCardController? controller,
  9. bool flipOnTouch = true,
  10. Alignment alignment = Alignment.center,
  11. Fill fill = Fill.none,
  12. CardSide side = CardSide.FRONT,
})

Implementation

const FlipCard({
  required this.front,
  required this.back,
  super.key,
  this.speed = 500,
  this.onFlip,
  this.onFlipDone,
  this.direction = FlipDirection.HORIZONTAL,
  this.controller,
  this.flipOnTouch = true,
  this.alignment = Alignment.center,
  this.fill = Fill.none,
  this.side = CardSide.FRONT,
});