CloudFilesAction class final
Uploads files the user picks to (or deletes them from) cloud storage
folder path; actions run with each file (${result.url}...). With a
source, it uploads that value instead of asking the user (a captured
screenshot, a drawing).
- Inheritance
-
- Object
- ActionDef
- DataAction
- CloudFilesAction
Constructors
-
CloudFilesAction({CloudFilesOperation operation = CloudFilesOperation.upload, String path = '', CloudFileKind kind = CloudFileKind.image, bool allowMultiple = true, double maxSizeMB = 10, String progressVariable = '', CloudFileAccess access = CloudFileAccess.public, String source = '', String fileName = '', List<
ActionDef> actions = const [], bool enabled = true, bool nonBlocking = false, Predicate? when}) -
const
Properties
- access → CloudFileAccess
-
final
-
actions
→ List<
ActionDef> -
final
- allowMultiple → bool
-
final
- enabled → bool
-
False skips the action.
finalinherited
- fieldsJson → Json
-
Its own fields, as JSON (sparse): what toJson writes besides
typeand the common fields. An action class outside this library overrides this.no setteroverride - fileName → String
-
The name a source file is stored under (an expression); empty: the
map's
name, elsefile-<time>.<extension of its type>.final - hashCode → int
-
The hash code for this object.
no setterinherited
- kind → CloudFileKind
-
final
- maxSizeMB → double
-
final
-
nested
→ List<
ActionDef> -
The actions it runs itself (branches, follow-ups), in order.
no setteroverride
- nonBlocking → bool
-
The chain doesn't wait for it, and its failure doesn't stop the chain.
finalinherited
- operation → CloudFilesOperation
-
final
- path → String
-
final
- progressVariable → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selfAndNested
→ Iterable<
ActionDef> -
This action, then every action nested in it, depth first.
no setterinherited
- source → String
-
An expression giving what to upload instead of asking the user: a
data:URL (what acaptureScreenshotgives as${result.image}), a map{"data": "data:...", "name": "shot.png"}, or a list of them. Empty: the user picks the files. An older runtime ignores it and asks.final - type → String
-
The JSON
type.no setteroverride - when → Predicate?
-
Runs only when it holds; null: always.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited