ScribbleState.erasing constructor
const
ScribbleState.erasing({})
The state of the scribble widget when the user is currently erasing.
Implementation
const factory ScribbleState.erasing({
/// The current state of the sketch
required Sketch sketch,
/// Which pointers are allowed for drawing and will be captured by the
/// scribble widget.
@Default(ScribblePointerMode.all) ScribblePointerMode allowedPointersMode,
/// The ids of all supported pointers that are currently interacting with
/// the widget.
@Default([]) List<int> activePointerIds,
/// The current position of the pointer
Point? pointerPosition,
/// The current width of the pen
@Default(5) double selectedWidth,
/// How much the widget is scaled at the moment.
///
/// Can be used if zoom functionality is needed
/// (e.g. through InteractiveViewer) so that the pen width remains the same.
@Default(1) double scaleFactor,
/// The current tolerance of simplification, in pixels.
///
/// Lines will be simplified when they are finished. A value of 0 (default)
/// will mean no simplification.
@Default(0) double simplificationTolerance,
}) = Erasing;