undo method

Future undo()

Rolls back to the previous value from the history

Implementation

Future<dynamic> undo() {
  if (_scopeCommand == null) {
    throw EventBusException("Scope<$T> not initialize");
  }
  return _scopeCommand!.undo();
}