setGroupAttributes method
Implementation
Future<dynamic> setGroupAttributes(Map<String, dynamic> params) async {
try {
final setGroupAttributesParams = SetGroupAttributes.foramteParams(params);
final res = await wrappedPromiseToFuture(
timeweb!.setGroupAttributes(setGroupAttributesParams));
if (res.code == 0) {
return CommonUtils.returnSuccessForCb('ok');
}
return CommonUtils.returnError('transfer group member failed');
} catch (error) {
return CommonUtils.returnError(error.toString());
}
}