ScratchCard constructor
const
ScratchCard({
- Key? key,
- required Widget child,
- Color scratchColor = const Color(0xFFB0BEC5),
- double brushSize = 25.0,
- double threshold = 0.5,
- VoidCallback? onThresholdReached,
- BorderRadius? borderRadius,
- Widget? overlay,
Implementation
const ScratchCard({
super.key,
required this.child,
this.scratchColor = const Color(0xFFB0BEC5),
this.brushSize = 25.0,
this.threshold = 0.5,
this.onThresholdReached,
this.borderRadius,
this.overlay,
});