GraphController class
GraphController controls the nodes and relations on a GraphWidget
- Inheritance
-
- Object
- ChangeNotifier
- GraphController
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
clear(
) → void -
collapseNode(
String nodeId, {bool recursively = true, String? collapseRootNodeId}) → void -
displayedNodes(
) → Iterable< Node> -
displayedRelations(
) → Iterable< Relation> -
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
expandNode(
String nodeId, Iterable< Relation> relations) → Future<void> -
getNodeRect(
String nodeId) → Rect? -
getRelationsFrom(
String nodeId) → Iterable< Relation> -
getRelationsTo(
String nodeId) → Iterable< Relation> -
hideNode(
String nodeId, {bool removeRelations = true}) → void -
hideRelation(
String relationId) → void -
loadGraph(
String graphJson) → void -
moveNode(
String nodeId, Rect rect) → void -
nodeIsConnected(
String nodeId) → bool -
nodeIsDisconnected(
String nodeId) → bool -
nodeIsExpanded(
String nodeId) → bool -
nodeIsLeaf(
String nodeId) → bool -
nodeIsNotExpanded(
String nodeId) → bool -
nodeIsNotLeaf(
String nodeId) → bool -
nodeIsShown(
String nodeId) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
saveGraph(
String graphJson) → void -
showNode(
Node node, Rect rect) → void -
showRelation(
Relation relation) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited