changeGroupName method
改变群组的名称
Implementation
void changeGroupName({
final String groupId,
final String groupName,
onSuccess(),
onError(int errorCode, String desc)}){
Future<Map<String, dynamic>> result = _emGroupManagerChannel
.invokeMethod(EMSDKMethod.changeGroupName, {"groupId" : groupId, "groupName" : groupName});
result.then((response){
if (response['success']) {
if (onSuccess != null) {
onSuccess();
}
} else {
if (onError != null) onError(response['code'], response['desc']);
}
});
}