SignalDevTools class

DevTools integration (compat wrapper).

SignalDevTools now delegates to NeuronDebugRegistry so legacy APIs remain callable without duplicating state.

Basic Usage

// Enable DevTools
SignalDevTools().setEnabled(true);

// Register a standalone signal
final count = Signal(0);
SignalDevTools().register('count', count);

Constructors

SignalDevTools()
factory

Properties

events List<SignalEvent>
Get all events from the registry and standalone.
no setter
hashCode int
The hash code for this object.
no setterinherited
isEnabled bool
no setter
maxEvents int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signals Map<String, NeuronAtom>
Get all registered signals (id -> notifier) from the registry and standalone.
no setter

Methods

clearEvents() → void
Clear all events.
clearHistory() → void
Clear all history.
compareSnapshots(Map<String, dynamic> snapshot1, Map<String, dynamic> snapshot2) Map<String, dynamic>
Compare two snapshots and return differences.
createCheckpoint() Map<String, dynamic>
Create a checkpoint for state rollback.
exportState() String
Export state to JSON.
getEventsByTimeRange(DateTime start, DateTime end) List<SignalEvent>
Get events within a time range.
getEventsByType(SignalEventType type) List<SignalEvent>
Get events filtered by type.
getEventsForSignal(String id) List<SignalEvent>
Get events for a specific signal.
getHistory(String id) List?
Get history for a signal (values only).
getSnapshot() Map<String, dynamic>
Get snapshot of all signal states.
getStatistics() Map<String, dynamic>
Get statistics about signal activity.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordCustomEvent(String id, String eventType, dynamic value, {Map<String, dynamic>? metadata}) → void
Record a custom event.
register(String id, NeuronAtom signal) → void
Register a signal for debugging.
restoreCheckpoint(Map<String, dynamic> checkpoint) → void
Restore state from a checkpoint.
setEnabled(bool enabled) → void
Enable or disable devtools.
setMaxEvents(int max) → void
Set maximum number of events to store.
timeTravel(String id, int historyIndex) → void
Time travel - restore signal to a previous value.
toString() String
A string representation of this object.
inherited
unregister(String id) → void
Unregister a signal.

Operators

operator ==(Object other) bool
The equality operator.
inherited