startCallback method Null safety

Future<void> startCallback()

Start contact and group, chatroom callback.

Reference: Call this method when you ui is ready, then will receive ChatRoomEventHandler, ContactEventHandler, ChatGroupEventHandler event.

Implementation

Future<void> startCallback() async {
  Map result = await ClientChannel.invokeMethod(ChatMethodKeys.startCallback);
  try {
    ChatError.hasErrorFromResult(result);
  } on ChatError catch (e) {
    throw e;
  }
}