NmTaxGraphState class

State for the tax graph view.

Constructors

NmTaxGraphState({List<NmGraphNodeData> nodes = const [], List<NmGraphEdgeData> edges = const [], List<NmGraphAnomaly> anomalies = const [], String? selectedNodeId, String? hoveredNodeId, String? selectedAnomalyId, double scale = 1.0, Offset offset = Offset.zero, bool isSimulating = false})
Creates a NmTaxGraphState.
const

Properties

anomalies → List<NmGraphAnomaly>
Anomalies.
final
edges → List<NmGraphEdgeData>
Edges.
final
hashCode → int
The hash code for this object.
no setterinherited
hoveredNodeId → String?
Hovered node id.
final
isSimulating → bool
Is simulating.
final
nodes → List<NmGraphNodeData>
Nodes.
final
offset → Offset
Offset.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scale → double
Scale.
final
selectedAnomaly → NmGraphAnomaly?
Selected anomaly.
no setter
selectedAnomalyId → String?
Selected anomaly id.
final
selectedNode → NmGraphNodeData?
Selected node.
no setter
selectedNodeId → String?
Selected node id.
final

Methods

connectedNodeIds(String nodeId) → Set<String>
Get all connected node IDs for a given node.
copyWith({List<NmGraphNodeData>? nodes, List<NmGraphEdgeData>? edges, List<NmGraphAnomaly>? anomalies, String? selectedNodeId, String? hoveredNodeId, String? selectedAnomalyId, double? scale, Offset? offset, bool? isSimulating}) → NmTaxGraphState
Copy with.
edgesForNode(String nodeId) → List<NmGraphEdgeData>
Get all edges connected to a 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