clearAllGroupsFromLocal method
Clears all groups of the current user from the local database.
Returns None.
Throws Exception description, see ChatError.
Implementation
Future<void> clearAllGroupsFromLocal() async {
Map result = await platform_interface.Client.instance.groupManager
.callNativeMethod(ChatMethodKeys.clearAllGroupsFromDB);
try {
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}