DependencyNode class

Represents a node in the project dependency graph.

Each node has:

  • A unique id (e.g., 'widgetClass:abc123', 'global:routing', 'appStateVar:userName')
  • A type indicating what kind of node it is
  • imports - forward dependencies (what this node depends on)
  • importedBy - reverse dependencies (what depends on this node)

Constructors

DependencyNode({required String id, required DependencyNodeType type, String? widgetClassKey, String? displayName, Set<String>? imports, Set<String>? importedBy, Set<String>? componentClassKeys, Set<String>? navigationTargetPageKeys, Set<String>? sheetDialogComponentKeys})

Properties

componentClassKeys Set<String>
Component class keys used by this node (for pages/components only).
final
dependencyCount int
The number of nodes this node depends on (out-degree).
no setter
dependentCount int
The number of nodes that depend on this node (in-degree).
no setter
displayName String?
Human-readable display name for this node.
final
hashCode int
The hash code for this object.
no setteroverride
id String
Unique identifier for this node.
final
importedBy Set<String>
Reverse dependencies: what other nodes import/depend on this node.
final
imports Set<String>
Forward dependencies: what this node imports/depends on.
final
isComponent bool
Whether this node is a component.
no setter
isGlobalFile bool
Whether this node is a global file node.
no setter
isPage bool
Whether this node is a page.
no setter
isWidgetClass bool
Whether this node is a widget class (page or component).
no setter
Page keys this node navigates to via actions.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sheetDialogComponentKeys Set<String>
Component keys this node shows in bottom sheets or custom dialogs.
final
type DependencyNodeType
Type of this dependency node.
final
widgetClassKey String?
For page/component nodes, the widget class key. Null for global file nodes and state variable nodes.
final

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
override