getMessages method

  1. @override
List<DOOMessage> getMessages()
override

Implementation

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