loadingNewMessage method

Future<void> loadingNewMessage({
  1. bool hasNext = false,
})

Implementation

Future<void> loadingNewMessage({bool hasNext = false}) async {
   if (hasNext) {
    // write your logic code here
    refreshController.loadComplete();
  } else {
    refreshController.loadNoData();
  }
}