exitReorderMode method

void exitReorderMode()

Abandons the drag session with no write: restores the last server-confirmed order and closes reorder mode.

Implementation

void exitReorderMode() {
  // Outruns any reorder-search fetch already in flight — see [saveReorder]'s
  // own bump for why a late response must not reopen reorder mode after
  // Cancel.
  ++_requestId;
  _isReordering = false;
  _reorderedRecords = _serverReorderedRecords;
  _errorMessage = null;
  notifyListeners();
}