Skip to content

BlocTask

The BLoC for the communication between the RPUITask and its steps RPStep.

Constructors

BlocTask

BlocTask()

Properties

lastProgressValue

RPTaskProgress? get lastProgressValue

lastTaskResult

RPTaskResult? get lastTaskResult

The current state of the Task Result which can be accessed throughout the framework

sendStatus

void Function(RPStepStatus) get sendStatus

The function to update the current status of the question

Based on the status the task will navigate to the next question and manage the result of the question

sendStepResult

void Function(RPResult) get sendStepResult

The function to send the latest result of the step to the task

Usually it's called as part of the createAndSendResult implementation in those classes which are implementing the CanSaveResult abstract class

stepResult

Stream<RPResult> get stepResult

The stream communicating the latest result of the current step

stepStatus

Stream<RPStepStatus> get stepStatus

The stream conveying the current step status

taskProgress

Stream<RPTaskProgress> get taskProgress

The stream having the latest progress of the task

updateTaskProgress

void Function(RPTaskProgress) get updateTaskProgress

The function to update the task progress. The task progress is shown in the appbar on top of the screen. It shows how many questions are there in total and where the participant stands in the process so far.

updateTaskResult

void Function(RPTaskResult) get updateTaskResult

The function to update the task result which is shown in the AppBar for RPOrderedTask

Methods

dispose

void dispose()