Scratcher constructor

Scratcher({
  1. Key? key,
  2. required Widget child,
  3. bool enabled = true,
  4. double? threshold,
  5. double brushSize = 25,
  6. ScratchAccuracy accuracy = ScratchAccuracy.high,
  7. Color color = Colors.black,
  8. Image? image,
  9. bool rebuildOnResize = true,
  10. dynamic onChange(
    1. double value
    )?,
  11. VoidCallback? onThreshold,
  12. VoidCallback? onScratchStart,
  13. VoidCallback? onScratchUpdate,
  14. VoidCallback? onScratchEnd,
})

Implementation

Scratcher({
  Key? key,
  required this.child,
  this.enabled = true,
  this.threshold,
  this.brushSize = 25,
  this.accuracy = ScratchAccuracy.high,
  this.color = Colors.black,
  this.image,
  this.rebuildOnResize = true,
  this.onChange,
  this.onThreshold,
  this.onScratchStart,
  this.onScratchUpdate,
  this.onScratchEnd,
}) : super(key: key);