undo method
void
undo()
Implementation
void undo() {
if (_strokes.isEmpty) return;
_redo.add(_strokes.removeLast());
notifyListeners();
}
void undo() {
if (_strokes.isEmpty) return;
_redo.add(_strokes.removeLast());
notifyListeners();
}