next method

  1. @override
Future<void> next()
override

Fetches the next messages page.

Implementation

@override
Future<void> next() async {
  Log.debug('next()', '$runtimeType($id)');

  if (!status.value.isLoading) {
    status.value = RxStatus.loadingMore();
  }

  await _pagination?.next();
  status.value = RxStatus.success();

  Future.delayed(Duration.zero, updateReads);
}