destroy method
Implementation
@override
Future<void> destroy() async {
try {
await TencentImSDKPlugin.v2TIMManager.logout();
await TencentImSDKPlugin.v2TIMManager.unInitSDK();
if (ImState.callInstance.value != null) {
await LoginStore.shared.logout();
}
developerLog('🎉🎉🎉 销毁 IM 成功');
ImState.clearImConfig();
} catch (e) {
throw Exception('销毁失败: $e');
}
}