GraphLayoutNode class final

A node to lay out: its size, its current position and whether it is pinned there.

A node is a container when another node names it as parentId. A layout that supports containers (layered) places the children inside it and sizes it from them: size is then the container's minimum size.

Constructors

GraphLayoutNode({required String id, required DiagramSize size, DiagramPoint? position, bool pinned = false, String? parentId, LayoutInset inset = LayoutInset.zero, bool collapsed = false, bool centered = false})
const

Properties

centered → bool
Whether the node sits on the centre line of its container (layered layouts with keepOrder).
final
collapsed → bool
A collapsed container keeps its size and hides its descendants, which take no room and are reported in GraphLayoutResult.hidden.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
inset → LayoutInset
The room a container keeps around its children.
final
parentId → String?
The container this node sits in, or null at the top level.
final
pinned → bool
final
position → DiagramPoint?
The node's top-left corner, required when pinned.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → DiagramSize
final

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