pinParticipant method

Future<void> pinParticipant(
  1. String? participantId
)

Pins a participant to the main view.

Implementation

Future<void> pinParticipant(String? participantId) async {
  try {
    await CometChatCallsPluginPlatform.instance.nativePinParticipant(participantId);
  } catch (e) {
    throw CometChatCallsException(
      ErrorCodeConstants.errorPinParticipant,
      'Failed to pin participant',
      e.toString(),
    );
  }
}