canUndo property

bool canUndo
inherited

Is there is a move that can be undone?

Implementation

bool get canUndo => _gameHistory.length > 0 && !isGameOver;