EditOp class sealed
One edit operation on a layout document, addressed by node id.
JSON: {"op": "set" | "patch" | "move" | "remove" | "vars" | "roots", ...}.
decodeOps reads a batch; toJson writes one op.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
canonical(
String? name) → String? -
The op
namemeans (setforset,Setand the aliasadd), or null when it names none. -
fromJson(
Object? json, {List< EditDiagnostic> ? diagnostics}) → EditOp? -
Decodes one op; null (with
diagnosticssaying why) whenjsonis not one. Asetwith anodesmap is several ops: use decodeOps. -
isOpName(
String name) → bool -
Whether
namenames an op (or an alias models write for one). -
specOf(
String op) → EditOpSpec?
Constants
-
specs
→ const List<
EditOpSpec> - Every op's declaration, in the order the reference lists them.