undo abstract method

T undo(
  1. T state
)

Undoes the command and returns the previous state.

Implementation

T undo(T state);