clearAllGroupsFromLocal method
清理数据库中当前用户的所有群组。
Throws  如果有异常会在此抛出,包括错误码和错误信息,详见 ChatError。
Implementation
Future<void> clearAllGroupsFromLocal() async {
  Map result =
      await _channel.invokeMethod(ChatMethodKeys.clearAllGroupsFromDB);
  try {
    ChatError.hasErrorFromResult(result);
  } on ChatError catch (e) {
    throw e;
  }
}