InMemoryCollectionStoragePort class

In-memory collection storage for testing.

Implemented types

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clear all data.
delete(String collection, String id) → Future<void>
Delete an item from a collection.
override
exists(String collection, String id) → Future<bool>
Check if an item exists.
override
get(String collection, String id) → Future<Map<String, dynamic>?>
Get an item by collection and ID.
override
listIds(String collection) → Future<List<String>>
List all IDs in a collection.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String collection, QueryFilter filter) → Future<List<Map<String, dynamic>>>
Query items in a collection.
override
save(String collection, String id, Map<String, dynamic> data) → Future<void>
Save an item to a collection.
override
toString() → String
A string representation of this object.
inherited

Operators

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