requestFuture method

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

Implementation

Future<void> requestFuture(
    {int historyCount = Room.defaultHistoryCount}) async {
  if (allowNewEvent) {
    return; // we shouldn't force to add new events if they will autatically be added
  }

  if (isRequestingFuture) return;
  isRequestingFuture = true;
  await _requestEvents(direction: Direction.f, historyCount: historyCount);
  isRequestingFuture = false;
}