NodeService class

Constructors

NodeService(Repository<Node> _repository)

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createNode(NodeCreate nodeCreate) → Future<Node>
deleteNode(String id) → Future<void>
Deletes a node if it has no children
dispose() → void
getAllNodes() → Future<List<Node>>
getChildren(String id) → Future<List<Node>>
Gets all direct children of a node
getNode(String id) → Future<Node>
Retrieves a node by its unique ID
getNodesByRoot(String rootId) → Future<List<Node>>
getPathNodes(String pathPrefix) → Future<List<Node>>
Gets all nodes with pathHash starting with the given prefix
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
trace(String nodeId) → Future<List<Node>>
Traces the path from a node back to its root
updateNode(String id, NodeUpdate nodeUpdate) → Future<Node>
Updates a node's pathHash or content

Operators

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