ScriptCapability enum
What a script may do besides computing; anything else it calls fails. JSON: the capability's id.
Values
- variablesRead → const ScriptCapability
-
vars.get(name),vars.has(name),vars.all().const ScriptCapability('variables.read', 'Read variables') - variablesWrite → const ScriptCapability
-
vars.set(name, value).const ScriptCapability('variables.write', 'Change variables') - nodesRead → const ScriptCapability
-
nodes.value(id): the values of inputs on screen.const ScriptCapability('nodes.read', 'Read input values') -
app.navigate(page, params),app.back(result).const ScriptCapability('navigation', 'Navigate') - api → const ScriptCapability
-
app.callApi(name, inputs).const ScriptCapability('api', 'Call APIs') - cloud → const ScriptCapability
-
app.cloudData(request).const ScriptCapability('cloud', 'Cloud data') - actions → const ScriptCapability
-
app.runAction(action),app.toast(text),app.delay(ms).const ScriptCapability('actions', 'Run actions') - clock → const ScriptCapability
-
Date.now(),new Date(). Without it a script's result depends only on its inputs.const ScriptCapability('clock', 'Read the clock')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The name scripts and the runner use (
variables.read).final - index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- label → String
-
A short label for the editor.
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
-
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
-
parse(
Object? v) → ScriptCapability? -
The capability named
v(its id or its name); null for one this version doesn't know.
Constants
-
values
→ const List<
ScriptCapability> - A constant List of the values in this enum, in order of their declaration.