getParticipant method

Future<Participant> getParticipant(
  1. String participantId
)

Gets the Participant object based on the participantId.

Implementation

Future<Participant> getParticipant(String participantId) async {
  var result = await _methodChannel.invokeMethod<Map<Object?, Object?>>(
      "getParticipant", {"participantId": participantId});
  return Future.value(
      result != null ? ParticipantMapper.fromMap(result) : null);
}