getMessages method
Implementation
@override
List<RuutMessage> getMessages() {
List<RuutMessage> sortedMessages =
_messages.values.toList(growable: false);
sortedMessages.sort((a, b) {
return a.createdAt.compareTo(b.createdAt);
});
return sortedMessages;
}