SetOp class final

Create or replace node id with node (its JSON, as a document holds it under nodes), and optionally place it under parent at index (or in slot). Flutter: inserting a widget into the tree.

Inheritance

Constructors

SetOp(String id, Json node, {String? parent, int? index, String? slot, Map<String, Json> placeholders = const {}})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String
final
index → int?
final
node → Json
The node's JSON (without id: the op's id is its address).
final
op → String
The JSON op.
no setteroverride
parent → String?
final
placeholders → Map<String, Json>
Sizes to show for children node lists that have not arrived yet: child id → a layout fragment ({"width": {"fill": 360}, "height": 200}). Rendering only: not part of the document.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slot → String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

opName → const String
spec → const EditOpSpec