requestHistory method

Future<void> requestHistory({
  1. int historyCount = Room.defaultHistoryCount,
})

Implementation

Future<void> requestHistory(
    {int historyCount = Room.defaultHistoryCount}) async {
  if (isRequestingHistory) {
    return;
  }

  isRequestingHistory = true;
  await _requestEvents(direction: Direction.b, historyCount: historyCount);
  isRequestingHistory = false;
}