canUndo property

bool get canUndo

Whether an undo operation can be performed or not.

Implementation

bool get canUndo => performedActions.isNotEmpty;