FlipCard constructor
const
FlipCard({
- Key? key,
- required Widget front,
- required Widget back,
- int speed = 500,
- VoidCallback? onFlip,
- BoolCallback? onFlipDone,
- FlipDirection direction = FlipDirection.HORIZONTAL,
- FlipCardController? controller,
- bool flipOnTouch = true,
- Alignment alignment = Alignment.center,
- Fill fill = Fill.none,
- CardSide side = CardSide.FRONT,
- 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);