history method

PaginatedChannelHistory history({
  1. ChannelHistoryOrder order = ChannelHistoryOrder.descending,
  2. int chunkSize = 100,
})

Returns PaginatedChannelHistory. Most useful in infinite list type scenario.

If you set the order to ChannelHistoryOrder.ascending, then the messages will be loaded from oldest to newest. Otherwise, the default behavior is to load from the newest message to the oldest.

Overwriting chunkSize will allow you to load in smaller chunks. The default is the maximum value of 100.

Implementation

PaginatedChannelHistory history(
        {ChannelHistoryOrder order = ChannelHistoryOrder.descending,
        int chunkSize = 100}) =>
    PaginatedChannelHistory(_core, this, _keyset, order, chunkSize);