changeGroupName method Null safety

Future<EMGroup> changeGroupName(
  1. String groupId,
  2. 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]);
}