canUndo method

bool canUndo()

Return true if you can undo

Implementation

bool canUndo() => _history.isNotEmpty && _historyIndex > 0;