ChangeDetector<C, K extends Object> class
abstract
Captures a baseline from C and reports how the live state differs.
The captured snapshot type never appears here: start hides it inside a
DetectorSession. That keeps a heterogeneous List<ChangeDetector<C, K>>
genuinely type-safe, instead of relying on an unsound downcast when the
tracker hands a stored baseline back to the detector that made it.
Most detectors should extend SnapshotChangeDetector rather than implementing this directly.
- Implementers
Constructors
- ChangeDetector()
-
Creates a detector.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Identifies this detector within a tracker. Must be unique.
no setter
- role → DetectorRole
-
Whether this detector describes changes or backstops them.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
listenables(
C sources) → Iterable< Listenable> - Listenables whose notifications mean the live state may have moved.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
C sources) → DetectorSession< C, K> - Captures the baseline and returns a session that can diff against it.
-
streams(
C sources) → Iterable< Stream< Object?> > - Streams whose events mean the live state may have moved.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited