endMove method

void endMove()

Ends moving the brush selection.

Implementation

void endMove() {
  gestureStartPosition = null;
  gestureStartExtent = null;
  brushState = BrushState.idle;
  if (extent != null) {
    widget.onBrushEnd?.call(extent!);
  }
  setState(() {});
}