undo method

void undo()

Implementation

void undo() {
  preparedLines = List.from(_backupLines); // Restore the previous state
}