create static method
Notifies the debug system that a reactive node was created.
This method should be called when a new reactive node is created.
The option parameter can provide debug metadata such as labels,
types, or custom debug callbacks.
Implementation
@pragma("vm:prefer-inline")
@pragma("wasm:prefer-inline")
@pragma("dart2js:prefer-inline")
static void create(ReactiveNode target, JoltDebugOption? option) {
assert(() {
// Call per-node debug function if provided
if (option?.onDebug != null) {
setDebug(target, option!.onDebug!);
option.onDebug!.call(DebugNodeOperationType.create, target);
}
// Call global hook if available (for DevTools)
JoltDevTools.handleNodeLifecycle(DebugNodeOperationType.create, target,
debugLabel: option?.debugLabel, debugType: option?.debugType);
return true;
}(), "");
}