setGroupPassword method
Implementation
Future<Group> setGroupPassword(String sdkId, String id, String password) async {
final res = await _methodChannel.invokeMethod<String>(
'GroupApi.setGroupPassword',
{
"sdkId": sdkId,
"id": jsonEncode(id),
"password": jsonEncode(password),
}
);
if (res == null) throw AssertionError("received null result from platform method setGroupPassword");
final parsedResJson = jsonDecode(res);
return Group.fromJSON(parsedResJson);
}