uninit method
you must call this method as soon as the user logout from your app
Implementation
Future<void> uninit() async {
if (!private._isInit) {
ZegoLoggerService.logInfo(
'service had not init, not need to un-init',
tag: 'call',
subTag: 'call invitation service(${identityHashCode(this)})',
);
return;
}
ZegoLoggerService.logInfo(
'service un-init',
tag: 'call',
subTag: 'call invitation service(${identityHashCode(this)})',
);
private._isInit = false;
await private._uninitPrivate();
_invitation._private.uninit();
await private.callkit._uninitCallKit();
if (Platform.isIOS) {
private.iOSCallkit._uninitIOSCallkitService();
}
await private._uninitPlugins();
}