pinParticipant method
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(),
);
}
}