TestContext<T extends CacheStore> class Null safety

Base class for all the test contexts.

Constructors

TestContext(ValueGenerator generator, {dynamic fromEncodable(Map<String, dynamic>)?})
Builds a new TestContext [...]

Properties

fromEncodable → (dynamic Function?(Map<String, dynamic>)?)
Function called on encodable object to obtain the underlining type
final
generator ValueGenerator
A value generator
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

deleteStore(T store) Future<void>
Deletes a store [...]
newCache(T store, {String? name, ExpiryPolicy? expiryPolicy, KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, CacheLoader? cacheLoader, Clock? clock, EventListenerMode? eventListenerMode}) Cache
Creates a new cache [...]
newStore() Future<T>
Creates a new store
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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