ParticipantPermissionsUpdate.set constructor Null safety

const ParticipantPermissionsUpdate.set(
  1. {Update<bool>? hasPresence,
  2. Update<Set<CanSendPermission>>? canSend,
  3. Update<Set<CanAdminPermission>>? canAdmin}
)

Implementation

const factory ParticipantPermissionsUpdate.set({
  /// Whether the participant has presence (i.e. whether they show up in others' participants()).
  Update<bool>? hasPresence,

  /// The kinds of media the participant is allowed to send.
  Update<Set<CanSendPermission>>? canSend,

  /// The kinds of admin tasks the participant is allowed to do.
  Update<Set<CanAdminPermission>>? canAdmin,
}) = _ParticipantPermissionsUpdate;