FlipCard constructor

const FlipCard({
  1. Key? key,
  2. required Widget front,
  3. required Widget back,
  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,
  13. Duration? autoFlipDuration,
})

Implementation

const FlipCard({
  Key? key,
  required this.front,
  required this.back,
  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,
  this.autoFlipDuration,
}) : super(key: key);