Scribble constructor
const
Scribble({
- required ScribbleNotifierBase notifier,
- bool drawPen = true,
- bool drawEraser = true,
- bool simulatePressure = true,
- Key? key,
This Widget represents a canvas on which users can draw with any pointer.
You can control its behavior from code using the notifier instance you pass in.
Implementation
const Scribble({
/// The notifier that controls this canvas.
required this.notifier,
/// Whether to draw the pointer when in drawing mode
this.drawPen = true,
/// Whether to draw the pointer when in erasing mode
this.drawEraser = true,
this.simulatePressure = true,
super.key,
});