DVWorkflowValue class

A value a step consumes: either a literal or a reference to a variable.

{'\$var': 'user'} reads the variable user; anything else is the literal itself. Keeping references explicit means a literal string that happens to look like a name is never mistaken for one.

Constructors

DVWorkflowValue.literal(Object? literal)
const
DVWorkflowValue.reference(String variable)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
literal → Object?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
variable → String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(Map<String, Object?> variables, {String? stepId}) → Object?
Resolves against variables, failing loudly on an unknown name.
toDartSource() → String
The Dart expression for this value, for code export.
toJson() → Object?
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Object? json) → DVWorkflowValue