SetStorageAction class final
Changes the app's values on the device (read as ${storage.<key>}). A
key may be a path (prefs.theme) into a stored map or list.
- Inheritance
-
- Object
- ActionDef
- DataAction
- SetStorageAction
Constructors
- SetStorageAction({StorageOperation operation = StorageOperation.write, String key = '', VariableType valueType = VariableType.text, ValueWrite write = const ValueWrite(), bool skipIfExists = false, bool enabled = true, bool nonBlocking = false, Predicate? when})
-
const
Properties
- 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 - hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
final
-
nested
→ List<
ActionDef> -
The actions it runs itself (branches, follow-ups), in order.
no setterinherited
- nonBlocking → bool
-
The chain doesn't wait for it, and its failure doesn't stop the chain.
finalinherited
- operation → StorageOperation
-
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
- skipIfExists → bool
-
Leaves a key that has a value.
final
- type → String
-
The JSON
type.no setteroverride - valueType → VariableType
-
How the written value is read.
final
- when → Predicate?
-
Runs only when it holds; null: always.
finalinherited
- write → ValueWrite
-
final
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