INNER CODE UNIT · Dart

Node

nabil6391/graphview · lib/Graph.dart:274

class Node {
  /// Unique identifier for this node. Two nodes with the same key value are equal.
  ValueKey? key;

  @Deprecated('Please use the builder and id mechanism to build the widgets')
  Widget? data;

  @Deprecated('Please use the Node.Id')
  Node(this.data, {Key? key}) {
    this.key = ValueKey(key?.hashCode ?? data.hashCode);
  }

  /// Creates a node with the given [id] as its identity key.
  Node.Id(dynamic id) {
    key = ValueKey(id);
  }

  /// The measured size of this node's widget, set during layout.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…