INNER CODE UNIT · Dart

GraphViewController

nabil6391/graphview · lib/GraphView.dart:49

class GraphViewController {
  _GraphViewState? _state;
  final TransformationController? transformationController;

  /// Tracks which nodes are currently collapsed (children hidden).
  final Map<Node, bool> collapsedNodes = {};

  /// Tracks nodes currently being revealed by an expand animation.
  final Map<Node, bool> expandingNodes = {};

  /// Maps each hidden node to the collapsed ancestor that hides it.
  final Map<Node, Node> hiddenBy = {};

  /// The most recently collapsed node (used for edge fade-out animation).
  Node? collapsedNode;

  /// The node to center the view on after a collapse/expand operation.
  Node? focusedNode;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…