init method Null safety
- EMOptions options
Initializes the SDK.
Param options
The configurations: {@link EMOptions}. Ensure that you set this parameter.
Implementation
Future<void> init(EMOptions options) async {
_options = options;
EMLog.v('init: $options');
await _channel.invokeMethod(ChatMethodKeys.init, options.toJson());
_currentUsername = await getCurrentUsername();
}