ScriptedDetector<C, K extends Object> constructor

ScriptedDetector<C, K extends Object>(
  1. String id, {
  2. Listenable? listenable,
  3. Stream<Object?>? stream,
  4. List<TrackedChange<K>> changes = const [],
  5. DetectorRole role = DetectorRole.describing,
  6. bool throwOnStart = false,
  7. bool throwOnDiff = false,
})

Creates a scripted detector.

Implementation

ScriptedDetector(
  this.id, {
  this.listenable,
  this.stream,
  this.changes = const [],
  this.role = DetectorRole.describing,
  this.throwOnStart = false,
  this.throwOnDiff = false,
});