FlipCard constructor

const FlipCard({
  1. Key? key,
  2. required Widget front,
  3. required Widget back,
  4. Duration duration = const Duration(milliseconds: 300),
  5. VoidCallback? onFlip,
  6. FlipCardOnFlipCallback? onFlipDone,
  7. Axis direction = Axis.horizontal,
  8. FlipCardCallback? onFlipCardState,
  9. bool touchFlip = true,
  10. bool initialFront = true,
  11. Alignment alignment = Alignment.center,
  12. Fill fill = Fill.front,
})

Implementation

const FlipCard({
  super.key,
  required this.front,
  required this.back,
  this.duration = const Duration(milliseconds: 300),
  this.onFlip,
  this.onFlipDone,
  this.direction = Axis.horizontal,
  this.onFlipCardState,
  this.touchFlip = true,
  this.initialFront = true,
  this.alignment = Alignment.center,
  this.fill = Fill.front,
});