UidStore class

Persists an entity's UID under ~/.omnyshell/<fileName> and detects changes.

On every start the caller recomputes the UID from live material and passes it to resolve; the store compares it against the persisted value, records the new value (retiring the old one into a history list) and reports whether it changed so the caller can warn loudly — a UID change is significant because it means the entity's identity material moved.

Constructors

UidStore({required String fileName, String? home})
const

Properties

fileName String
The file name under ~/.omnyshell/, e.g. node.uid or hub.uid.
final
hashCode int
The hash code for this object.
no setterinherited
home String?
Overrides the home directory (primarily for tests).
final
path String
The absolute path of the backing file.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(OmnyUid current, {void logger(String message)?}) Future<UidResolution>
Resolves current against the persisted UID, persisting the new value and returning whether it changed. Emits an info/warning line via logger.
toString() String
A string representation of this object.
inherited

Operators

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