clearAll method

void clearAll()

Clears all items and resets the controller to its initial state.

Implementation

void clearAll() {
  _lastAddedToBottom = false;
  _didLoadAll = false;
  _oldItems.clear();
  _newItems.clear();
  notifyListeners();
}