ChangeSet<K extends Object> class

An immutable read-model over the changes a tracker currently reports.

Exposes the queries a UI actually needs — a count for a banner, the kinds for an icon row, the subjects for a summary sentence — without callers re-deriving them from the raw list on every rebuild.

Annotations

Constructors

ChangeSet(List<TrackedChange<K>> changes)
Wraps changes as a read-model.
const
ChangeSet.empty()
An empty set.
const

Properties

changes List<TrackedChange<K>>
Every change, in detector-registration order.
final
hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
Whether nothing differs from the baseline.
no setter
isNotEmpty bool
Whether anything differs from the baseline.
no setter
kinds Set<K>
The distinct kinds present, preserving first-seen order.
no setter
length int
How many changes are reported.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subjectsByKind Map<K, List<String?>>
Subjects grouped by kind, for building summary sentences.
no setter

Methods

countOfKind(K kind) int
How many changes of kind are reported.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ofKind(K kind) List<TrackedChange<K>>
Every change of kind.
toString() String
A string representation of this object.
override

Operators

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