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 EMChatRoomManagerListener, EMContactManagerListener, EMGroupManagerListener callback.

Implementation

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