listMessages method
*[<Null safety>](https://dart.dev/null-safety)*
Future<List<DecodedMessage>> listMessages (Conversation conversation, {DateTime? start, DateTime? end, int? limit, SortDirection sort = xmtp.SortDirection.SORT_DIRECTION_DESCENDING})
This lists messages sent to the conversation
.
If start
or end
are specified then this will only list messages sent at or after start
and at or before end
.
If limit
is specified then this returns no more than limit
messages.
If sort
is specified then that will control the sort order.
Implementation
Future<List<DecodedMessage>> listMessages(
Conversation conversation, {
DateTime? start,
DateTime? end,
int? limit,
xmtp.SortDirection sort = xmtp.SortDirection.SORT_DIRECTION_DESCENDING,
}) =>
_conversations.listMessages(conversation, start, end, limit, sort);