NeuronDebugEvent.controller constructor

NeuronDebugEvent.controller(
  1. String id,
  2. bool disposed
)

Implementation

factory NeuronDebugEvent.controller(String id, bool disposed) {
  return NeuronDebugEvent(
    kind: disposed
        ? NeuronDebugEventKind.controllerDispose
        : NeuronDebugEventKind.controllerInit,
    id: id,
    value: null,
    timestamp: DateTime.now().millisecondsSinceEpoch,
  );
}