ScratchCard constructor
const
ScratchCard({
- Key? key,
- required Widget prize,
- required Widget cover,
- VoidCallback? onThresholdReached,
- VoidCallback? onRevealed,
- double threshold = 0.6,
- double brushWidth = 36,
- Size size = const Size(280, 180),
- int columns = 48,
- int rows = 32,
- String semanticLabel = 'Scratch to reveal prize',
- double coverBorderRadius = 18,
Implementation
const ScratchCard({
super.key,
required this.prize,
required this.cover,
this.onThresholdReached,
this.onRevealed,
this.threshold = 0.6,
this.brushWidth = 36,
this.size = const Size(280, 180),
this.columns = 48,
this.rows = 32,
this.semanticLabel = 'Scratch to reveal prize',
this.coverBorderRadius = 18,
});