RPConsentDocument class Null safety

Represents the content of an informed consent document.

Research Package uses RPConsentDocument to provide content for RPVisualConsentStep where the content if presented to the participant and for RPConsentReviewStep where the user can review and sign the document. The building blocks of a consent document are sections. They hold the content which is presented and later agreed by the participant. By adding signatures to the consent document the parameters of the signature(s) to collect can be specified.

Inheritance
Annotations

Constructors

RPConsentDocument({required String title, required List<RPConsentSection> sections})
RPConsentDocument.fromJson(Map<String, dynamic> json)
factory

Properties

$type String?
The runtime class name (type) of this object. Used for deserialization from JSON objects.
read / write, inherited
fromJsonFunction Function
The function which can convert a JSON string to an object of this type.
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
jsonType String
Return the $type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sections List<RPConsentSection>
The sections which hold the content of the consent document [...]
read / write
signaturePageContent String?
For creating PDF. Coming later...
read / write
signaturePageTitle String?
For creating PDF. Coming later...
read / write
signatures List<RPConsentSignature>
The list of signatures that are required in the document
read / write
title String
The title of the consent document [...]
read / write

Methods

addSignature(RPConsentSignature signature) → void
Adds a signature to the list of signatures
getConsentSignatureAtIndex(int index) RPConsentSignature
Returns an RPConsentSignature from the signatures array at the given index
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Return a JSON encoding of this object.
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited