MemoryManagedComponentSource class

A ManagedComponentSource in memory, for tests and offline apps.

Implemented types

Properties

calls → List<String>
Calls made: master:<id>, version:<id>/<n>.
final
delay ↔ Duration?
Set to delay every call.
getter/setter pair
failWith ↔ Object?
Set to make every call fail with it.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
masters → Map<String, ManagedComponentMaster>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
versions → Map<String, ManagedComponentVersion>
By "id/version".
final

Methods

loadMaster(String id) → Future<ManagedComponentMaster?>
Master id, or null when there's none.
override
loadVersion(String id, int version) → Future<ManagedComponentVersion?>
Version version of id, or null when there's none.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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