changeGroupName method Null safety
- String groupId,
- String name
更新群组名称
Implementation
Future<EMGroup> changeGroupName(
String groupId,
String name,
) async {
Map req = {'name': name, 'groupId': groupId};
Map result =
await _channel.invokeMethod(EMSDKMethod.updateGroupSubject, req);
EMError.hasErrorFromResult(result);
return EMGroup.fromJson(result[EMSDKMethod.updateGroupSubject]);
}