MockCacheEngine class
- Implemented types
- Mixed-in types
-
- MockMixin
Constructors
Properties
-
calledFunctions
→ List<
String> -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastReceivedObject ↔ dynamic
-
getter/setter pairinherited
-
methodCallList
→ List<
MethodCall> -
A list of all the method calls that were made to the mock
Note: this list will be filled only if you use the method
addCalland not if you use the methodaddCalledFunction(which only supports functions names)finalinherited - nextReturnedObject ↔ dynamic
-
getter/setter pairinherited
-
receivedObjects
→ Map<
String, dynamic> -
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addCall(
{required String named, Map< String, dynamic> arguments = const {}}) → void -
Adds a method call to the list of method calls
and adds the arguments to the list of received objects
inherited
-
addCalledFunction(
{required String named}) → void -
inherited
-
addNextReturnFutureObject(
dynamic object) → void -
Receives a regular object and save it for the next function that will need to return something
inherited
-
addReceivedObject(
dynamic object, {required String name}) → void -
inherited
-
callsForMethod(
{required String named}) → List< MethodCall> -
Returns all the
MethodCallof a specific method each call will contain the method name and argumentinherited -
clearCache(
) → Future< void> -
override
-
getCacheEntry(
{required String key}) → Future< CacheEntry?> -
override
-
lastCall(
) → MethodCall? -
inherited
-
lastCallForMethod(
{required String named}) → MethodCall? -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
popNextReturnedObject(
) → dynamic -
inherited
-
removeCacheEntriesWithTag(
{required String tag}) → Future< void> -
override
-
removeCacheEntry(
{required String key}) → Future< void> -
override
-
resetAllTestValues(
) → void -
inherited
-
setCacheEntry(
{required CacheEntry cacheEntry, required List< String> tags}) → Future<void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
wasCalled(
{required String functionName}) → bool -
inherited
-
wasCalledWithArguments(
{required String functionName, Map< String, dynamic> arguments = const {}}) → bool -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited