undo method

void undo()

Removes the newest committed stroke.

Implementation

void undo() {
  if (strokes.isEmpty) return;
  strokes.removeLast();
  notifyListeners();
}