init method
- ChatOptions options
初始化 SDK。
Param options 配置,不可为空。
Implementation
Future<void> init(ChatOptions options) async {
_updataHandler();
try {
_options = options;
ChatLog.v('init: $options');
await platform_interface.Client.instance
.callNativeMethod(ChatMethodKeys.init, options.toJson());
_currentUserId = await getCurrentUserId();
} catch (e) {
rethrow;
}
}