InMemoryRowSourceBy<T> mixin

A repository backed by one InMemoryTable, exposing that table's rows — so a transaction snapshots the repository itself instead of reaching into it.

Every store in this backend mixes this in; it is why InMemoryUnitOfWork takes the repositories, not their tables.

Implemented types
Mixin applications

Properties

hashCode → int
The hash code for this object.
no setterinherited
rows → Map<String, Map<String, dynamic>>
The rows, keyed by record id.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
table → InMemoryTable<T>
The rows behind this repository — what a transaction snapshots.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replaceAll(Map<String, Map<String, dynamic>> rows) → void
Replaces every row — how a rollback restores a snapshot.
override
snapshot() → Map<String, Map<String, dynamic>>
A copy of every row — what a transaction keeps to undo itself.
override
toString() → String
A string representation of this object.
inherited

Operators

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