loadMore method

Future<void> loadMore()

Loads next channel lists, depending on the GroupChannelListQueryOrder set in the current collection.

Implementation

Future<void> loadMore() async {
  if (_isDisposed) return;

  sbLog.i(StackTrace.current, 'loadMore()');
  final channels = await _query.next();

  _isLoaded = true;

  if (channels.isNotEmpty) {
    _chat.collectionManager.sendEventsToGroupChannelCollection(
      channelCollection: this,
      eventSource: CollectionEventSource.channelLoadMore,
      addedChannels: channels,
    );
  }
}