PeekStore class abstract interface

Holds the entries Peek shows.

Entries keep the order they were first added in; sort them for display. changes delivers asynchronously, while entries and find reflect a change the moment it is made.

Implementers

Properties

changes → Stream<PeekStoreChange>
Every change, in order, delivered asynchronously.
no setter
entries → List<PeekEntry>
A snapshot of every entry, oldest first.
no setter
hashCode → int
The hash code for this object.
no setterinherited
length → int
Number of entries held.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Removes every entry.
dispose() → void
Closes changes. The store must not be used afterwards.
find(PeekId id) → PeekEntry?
The entry with id, if held.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(PeekId id) → bool
Removes the entry with id; returns whether there was one.
toString() → String
A string representation of this object.
inherited
upsert(PeekEntry entry) → void
Adds entry, or replaces the entry with the same id in place.

Operators

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