byId method
The node with id from the current list, or null if not loaded/found.
Implementation
NodeDescriptor? byId(String id) {
for (final n in state.value.data ?? const <NodeDescriptor>[]) {
if (n.id.value == id) return n;
}
return null;
}