chatMessagesStream method

Stream<List<ChatMessage>> chatMessagesStream(
  1. String disputeId
)

Implementation

Stream<List<ChatMessage>> chatMessagesStream(String disputeId) {
  if (!_chatControllers.containsKey(disputeId)) {
    _chatControllers[disputeId] = StreamController<List<ChatMessage>>.broadcast();
  }
  return _chatControllers[disputeId]!.stream;
}