ScratchCard constructor

const ScratchCard({
  1. Key? key,
  2. required Widget child,
  3. Color scratchColor = const Color(0xFFB0BEC5),
  4. double brushSize = 25.0,
  5. double threshold = 0.5,
  6. VoidCallback? onThresholdReached,
  7. BorderRadius? borderRadius,
  8. 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,
});