undo method
void
undo()
Implementation
void undo() {
if (_strokes.isNotEmpty) {
final lastStroke = _strokes.removeLast();
_redoStack.add(lastStroke);
_currentStroke.clear();
_currentPath = Path();
_isDrawing = false;
notifyListeners();
}
}