previous method

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

Fetches the previous messages page.

Implementation

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

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

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

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