setGroupPassword method

Future<Group> setGroupPassword(
  1. String sdkId,
  2. String id,
  3. String password
)

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);
}