WriteOp enum
How a write changes a value.
Values
- set → const WriteOp
-
Replaces the value with ValueWrite.value.
- toggle → const WriteOp
-
Flips a boolean.
- add → const WriteOp
-
A number: adds; a list: appends (each item of a list value); a map: merges in a map value.
- subtract → const WriteOp
-
A number: subtracts.
- insert → const WriteOp
-
A list: inserts the value at ValueWrite.index.
- insertAll → const WriteOp
-
A list: inserts each item of a list value at ValueWrite.index.
- removeAt → const WriteOp
-
A list: removes the item at ValueWrite.index.
- remove → const WriteOp
-
A list: removes the items equal to the value; a map: removes key ValueWrite.mapKey.
- update → const WriteOp
-
A list: sets the item at ValueWrite.index (appends at the length); a map: sets key ValueWrite.mapKey.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- 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