listConversations method
*[<Null safety>](https://dart.dev/null-safety)*
Future<List<Conversation>> listConversations ({DateTime? start, DateTime? end, int? limit, 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 this returns no more than limit
conversations.
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);