RPTask class

The RPTask abstract class defines a task to be carried out by a participant in a research study.

Extend this protocol to enable dynamic selection of the steps for a given task. By default, RPOrderedTask extends this abstract class for simple sequential tasks. Each step (RPStep) in a task roughly corresponds to one screen through their stepWidget Widget, and represents the primary unit of work in any task presented by a task view controller.

Implementers

Constructors

RPTask(String _identifier, { bool closeAfterFinished })

Properties

closeAfterFinished bool
If set to true the Task will close after the participant has finished the task. If it's set to false no navigation function is called. [...]
read / write
identifier String
A unique identifier of the Task. This identifier connects the Task to its result (RPTaskResult) object.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getStepAfterStep(RPStep step, RPTaskResult result) RPStep
Returns the step after a specified step if there's any.
getStepBeforeStep(RPStep step, RPTaskResult result) RPStep
Returns the step that precedes the specified step, if there is one.
getStepWithIdentifier(String identifier) RPStep
Returns the step that matches the specified identifier.
getTitleForStep(RPStep step) String
Returns the title of a given step
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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