canUndo property

bool get canUndo

Whether undo is available

Implementation

bool get canUndo => undoStack.isNotEmpty;