addParticipantRole method

bool addParticipantRole(
  1. ParticipantRole role
)
inherited

Add a participant role which can be assigned to participants in the study.

Returns true if the role has been added; false in case the same role has already been added before.

Implementation

bool addParticipantRole(ParticipantRole role) =>
    (participantRoles ??= {}).add(role);