InMemoryMetaRepository class

An in-memory IMetaRepository — the catalog's own single record.

This one is not a table of records: the catalog has exactly one `Meta`, so the store keeps one row under the fixed key meta. It still presents that row as rows so a transaction can snapshot it like every other store.

Implemented types

Constructors

InMemoryMetaRepository()
Creates an empty InMemoryMetaRepository.

Properties

hashCode → int
The hash code for this object.
no setterinherited
rows → Map<String, Map<String, dynamic>>
The single record as one row, keyed `_rowKey`.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fetch() → TaskEither<DomainFailure, Meta>
Fetch the current meta.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replaceAll(Map<String, Map<String, dynamic>> rows) → void
Puts the single row back — how a rollback restores a snapshot.
override
snapshot() → Map<String, Map<String, dynamic>>
A copy of the single row — what a transaction keeps to undo itself.
override
toString() → String
A string representation of this object.
inherited
update({required Meta meta}) → TaskEither<DomainFailure, Meta>
Update meta.
override

Operators

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