destroy method
Implementation
@override
Future<void> destroy() async {
try {
await _pluginChat.destroy().toDart;
if (ImState.callInstance.value != null) {
await _pluginCall.destroy().toDart;
}
ImState.clearImConfig();
} catch (e) {
throw Exception('销毁失败: $e');
}
}