Node<E> class

The main class that contains the data, position, and wether to show subnodes or not.

Constructors

Node({required E data, Offset position = Offset.zero, bool hideNodes = false})

Properties

data ↔ E
The data that the node containsm such as the id, to, title, etc. This is the data that you provide in the items list and you can use to build the node
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hideNodes bool
Whether to show the subnodes or not
getter/setter pair
position Offset
The position of the node in the graph
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

distance(Node node) Offset
The distance between this node and an input node
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