listConversations method

Future<List<Conversation>> listConversations({
  1. DateTime? start,
  2. DateTime? end,
  3. int? limit,
  4. SortDirection? sort = xmtp.SortDirection.SORT_DIRECTION_DESCENDING,
})

This lists all the Conversations for the user.

If start or end are specified then this will only list conversations created at or after start and at or before end.

If limit is specified then results are pulled in pages of that size.

If sort is specified then that will control the sort order.

Implementation

Future<List<Conversation>> listConversations({
  DateTime? start,
  DateTime? end,
  int? limit,
  xmtp.SortDirection? sort = xmtp.SortDirection.SORT_DIRECTION_DESCENDING,
}) =>
    _conversations.listConversations(start, end, limit, sort);