getMessages method

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

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;
}