getParticipants method

Future<Either<ScreenMeetError, List<Participant>>> getParticipants()

Responds with the list of remote participants on a call

Implementation

Future<Either<ScreenMeetError, List<Participant>>> getParticipants() async {
  final Map result = await _channel.invokeMethod(_pm.kGetParticipantsCommand);
  if (_pm.isSuccess(result)) { return Right(_pm.participants(result[_pm.kParticipants]));}
  return Left(_pm.error(result));
}