removeParticipant method

Future<EncryptedTopic> removeParticipant(
  1. String sdkId,
  2. String entityId,
  3. String dataOwnerId
)

Implementation

Future<EncryptedTopic> removeParticipant(String sdkId, String entityId, String dataOwnerId) async {
	final res = await _methodChannel.invokeMethod<String>(
		'TopicBasicApi.removeParticipant',
		{
			"sdkId": sdkId,
			"entityId": jsonEncode(entityId),
			"dataOwnerId": jsonEncode(dataOwnerId),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method removeParticipant");
	final parsedResJson = jsonDecode(res);
	return EncryptedTopic.fromJSON(parsedResJson);
}