Skip to content

RPCompletionStep

A step which can be used as a "Thank you" or completion step in a task.

Inheritance
Annotations

Constructors

RPCompletionStep.fromJson

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

RPCompletionStep

RPCompletionStep({
  1. required String identifier,
  2. required String title,
  3. String? text,
  4. bool optional = false,
})

Create a new RPCompletionStep which shown the text to the user.

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

stepWidget

Widget get stepWidget
override

The widget (UI representation) of the step.

RPQuestionSteps don't have it because their UI representation depends on the Answer Format. Their Answer Format is assessed by RPUIQuestionStep or RPUIFormStep and they return the corresponding UI.

When needed, it should be overridden to fit the different types of Steps.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.