Node<T>.fromLabel constructor
- String label
Creates a Node from a string value. It generates a unique key.
Implementation
factory Node.fromLabel(String label) {
String _key = Utilities.generateRandom();
return Node<T>(
key: '${_key}_$label',
label: label,
);
}