SromResultStep class

A step representing the result display for an SROM test. Displays the result UI and provides access to the SromResult.

Inheritance
  • Object
  • Serializable
  • RPStep
  • RPCompletionStep
  • SromResultStep
Annotations
  • @JsonSerializable.new(includeIfNull: false, explicitToJson: true)

Constructors

SromResultStep({required String identifier, required String title, String? text})
SromResultStep.fromJson(Map<String, dynamic> json)
Factory constructor for creating a SromResultStep from a JSON map.
factory

Properties

$type String?
The runtime class name (type) of this object. Used for deserialization from JSON objects.
getter/setter pairinherited
footnote String?
Optional footer text to be displayed below the question. This can be used to provide additional information, such as copyright, or instructions. This text will be displayed in a smaller font size.
getter/setter pairinherited
fromJsonFunction Function
Returns the function used for deserializing from JSON.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
identifier String
A unique identifier of the Step. This identifier connects the step to its result (RPResult) object.
finalinherited
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.
no setterinherited
optional bool
Can this step be skipped? If so, the result for the step will be null.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stepWidget Widget
Returns the widget for displaying the SROM result step UI.
no setteroverride
text String?
The text of the Step. Different types of Steps are using the text text differently.
getter/setter pairinherited
timer Timer?
getter/setter pairinherited
title String
The title text. Different types of Steps are using the title text differently.
getter/setter pairinherited

Methods

getTestResult() SromResult?
Gets the SromResult from the last task result, if available.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this SromResultStep to a JSON map.
override
toString() String
A string representation of this object.
inherited

Operators

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