canRedo property

bool get canRedo

Determines whether redo actions can be performed on the current state.

Implementation

bool get canRedo =>
    stateManager.position < stateManager.stateHistory.length - 1;