AttachHistory class
Persistent, most-recent-first AttachRecord store; all disk access is best-effort.
Constructors
- AttachHistory({required String dataDir, int maxRecords = 20})
Properties
- dataDir → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxRecords → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
find(
String? query) → AttachRecord? -
Best match for
query: null/true/last→ most recent; else appKey, projectDir, or its basename. -
load(
) → List< AttachRecord> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
record(
AttachRecord incoming) → void -
Upsert by key (keeps
firstSeen, bumpsattachCount), re-sort, cap, write. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited