Skip to content

RPConsentReviewStep

The step for presenting the consent document for review and collecting the signature

The RPConsentReviewStep is used for:

  • presenting the content of each section (RPConsentSection) of the consent document (RPConsentDocument) in a summarized form to the participant
  • collecting name (optional) and signature (optional)

The presence or type of the to be collected signature depends on the consentDocument's signature list.

Inheritance
Annotations

Constructors

RPConsentReviewStep.fromJson

RPConsentReviewStep.fromJson(
  1. Map<String, dynamic> json
)

RPConsentReviewStep

RPConsentReviewStep({
  1. required String identifier,
  2. required String title,
  3. String? text,
  4. required RPConsentDocument consentDocument,
  5. String? reasonForConsent,
})

Returns an initialized Consent Review Step

If the consent document doesn't have any signatures then no signature collection stage is part of the flow. On how to specify a signature go to RPConsentSignature.

Properties

consentDocument

RPConsentDocument consentDocument
getter/setter pair

The consent document to review and sign

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

reasonForConsent

String? reasonForConsent
getter/setter pair

The text in the confirmation popup (body)

stepWidget

  1. @override
  2. @JsonKey(includeFromJson: false, includeToJson: false)
Widget get stepWidget
override

The widget (UI representation) of the step

It returns the corresponding step widget with this step as an input

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.