startBrush method

void startBrush(
  1. double position
)

Starts a new brush selection.

Implementation

void startBrush(double position) {
  final newExtent = BrushExtent(position, position);
  extent = newExtent;
  brushState = BrushState.brushing;
  widget.onBrushStart?.call(newExtent);
  setState(() {});
}