init method
- ChatOptions options
Initializes the SDK.
Param options The configurations: ChatOptions. Ensure that you set this parameter.
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;
}
}