canUndo property
bool
get
canUndo
Indicates whether there are actions that can be undone.
Returns true
if there are actions in the painting history that can be undone; otherwise, returns false
.
Implementation
bool get canUndo => _paintCtrl.paintHistory.isNotEmpty;