undo method
void
undo()
Removes the newest committed stroke.
Implementation
void undo() {
if (strokes.isEmpty) return;
strokes.removeLast();
notifyListeners();
}
Removes the newest committed stroke.
void undo() {
if (strokes.isEmpty) return;
strokes.removeLast();
notifyListeners();
}