removeParticipant method
Implementation
Future<Topic> removeParticipant(String sdkId, String entityId, String dataOwnerId) async {
final res = await _methodChannel.invokeMethod<String>(
'TopicApi.tryAndRecover.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 Topic.fromJSON(parsedResJson);
}