setParticipantKey static method

Future<void> setParticipantKey(
  1. String participantId,
  2. String? key
)

Sets participantId's encryption key, applied at once; a null key removes it. A shared key on the provider wins over this one.

Throws ArgumentError for an empty participantId or an empty key.

Implementation

static Future<void> setParticipantKey(String participantId, String? key) =>
    setParticipantKeyInEngine(participantId, key);