InMemoryTraitAttributeDefinitionRepository class

An in-memory ITraitAttributeDefinitionRepository.

Records are kept as their JSON rows, so this reference persists exactly the wire form the model round-trips. Nothing here is durable, indexed or thread-safe: it is the smallest backend that satisfies the contract.

Implemented types
Mixed-in types

Properties

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

Methods

create({required TraitAttributeDefinition attribute}) → TaskEither<DomainFailure, TraitAttributeDefinition>
Create a new attribute definition.
override
delete({required String id}) → TaskEither<DomainFailure, void>
Delete an attribute definition by id.
override
fetchAll() → TaskEither<DomainFailure, List<TraitAttributeDefinition>>
Fetch all trait attribute definitions.
override
fetchById({required String id}) → TaskEither<DomainFailure, TraitAttributeDefinition>
Fetch a single attribute definition by id.
override
fetchByTrait({required String traitId}) → TaskEither<DomainFailure, List<TraitAttributeDefinition>>
Fetch attribute definitions for given trait.
override
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.
inherited
snapshot() → Map<String, Map<String, dynamic>>
A copy of every row — what a transaction keeps to undo itself.
inherited
toString() → String
A string representation of this object.
inherited
update({required TraitAttributeDefinition attribute}) → TaskEither<DomainFailure, TraitAttributeDefinition>
Update an existing attribute definition.
override

Operators

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