DVWorkflowType enum

A type a workflow input or result can have, named for a site owner.

These are the types a @DVBackendFunction parameter decodes, so an exported workflow validates its input the way a hand-written one does.

Inheritance
Available extensions

Values

text → const DVWorkflowType
const DVWorkflowType('String', 'Text')
wholeNumber → const DVWorkflowType
const DVWorkflowType('int', 'Whole number')
number → const DVWorkflowType
const DVWorkflowType('double', 'Number')
yesNo → const DVWorkflowType
const DVWorkflowType('bool', 'Yes or no')

Properties

dart → String
The Dart type an export declares.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
label → String
What Studio calls it.
final
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

accept(Object? value) → Object?
value as this type, or null when it is not one. A whole number is a number, as JSON has only one kind.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromDart(Object? name) → DVWorkflowType?

Constants

values → const List<DVWorkflowType>
A constant List of the values in this enum, in order of their declaration.