createConversation method

Future<Object> createConversation(
  1. String userId
)

Implementation

Future<Object> createConversation(String userId) {
  var completer = Completer<Object>();
  final eventId = Uuid().v4();
  postMessage("createConversation", {"eventId": eventId, "userId": userId});
  _promiseBus[eventId] = completer;
  return completer.future;
}