ScratchCard constructor
const
ScratchCard({})
Creates a ScratchCard.
child must not be null. brushSize controls how large each scratch
stroke is, and revealThreshold (0..1) sets the auto-reveal threshold.
Implementation
const ScratchCard({
super.key,
required this.child,
this.brushSize = 40.0,
this.coverColor = const Color(0xFFBDBDBD),
this.revealThreshold = 0.6,
this.onRevealed,
this.gridCellSize = 8.0,
});