RPPredicateStepNavigationRule class

A navigation rule which based on predicate(s)'s (RPResultPredicate) result(s).

By using RPPredicateStepNavigationRule different questions can be shown based on the result of previously answered questions. What the RPPredicateStepNavigationRule does is that it checks the predicate RPResultPredicate and if it's true, puts the destination step as next in the sequence. (Destination step identifiers are declared in the resultPredicatesWithDestinationIdentifiers)

Inheritance

Constructors

RPPredicateStepNavigationRule(Map<RPResultPredicate, String> _resultPredicatesWithDestinationIdentifiers, [ String _defaultStepIdentifier ])

Properties

defaultStepIdentifier String
read-only
resultPredicatesWithDestinationIdentifiers Map<RPResultPredicate, String>
A dictionary of result predicates and their associated destination step identifiers. If the predicate proves to be true, the destination identifier's step will be pushed as next in the step sequence. A navigation rule can have multiple result predicates and based on these different predicates the task jumps to different destination steps.
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

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