getMessages abstract method
Get a list of messages in a given time period from start
to end
with a maximum of count
messages.
If start
is null, all messages back in time is included.
If end
is null, all messages up to now is included.
Note that the list is not sorted in any way. Sorting - e.g., by date - must be handled by the app if needed.
Implementation
Future<List<Message>> getMessages({
DateTime? start,
DateTime? end,
int? count = 20,
});