canUndo method

bool canUndo()

Check if user can undo the last move.

Implementation

bool canUndo() => history.isNotEmpty;