canUndo property

bool get canUndo

Whether there is a previous drawing state available to undo.

Implementation

bool get canUndo => _undoStack.isNotEmpty;