removeKey method

Future<void> removeKey(
  1. String participantId
)

Removes participantId's key. On the installed provider this is the same as VideoSDK.setParticipantKey(participantId, null); on any other provider it does nothing.

Throws

Implementation

Future<void> removeKey(String participantId) async {
  if (participantId.trim().isEmpty) {
    throw ArgumentError.value(
        participantId, 'participantId', "participantId can't be empty");
  }
  if (!identical(_installed, this)) return;
  _participantKeys.remove(participantId);
  await _channel
      .invokeMethod('e2ee.removeKey', {'participantId': participantId});
}