Scribble constructor

const Scribble({
  1. required ScribbleNotifierBase notifier,
  2. bool drawPen = true,
  3. bool drawEraser = true,
  4. 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,
  super.key,
});