NetLensMemoryMockRepository class

Repository which keeps mocks in memory. It's the default repository, so mocks are gone when the app is closed.

Implemented types

Constructors

NetLensMemoryMockRepository({Iterable<NetLensMock> mocks = const []})

Properties

hashCode → int
The hash code for this object.
no setterinherited
mocksStream → Stream<List<NetLensMock>>
Stream which returns all mocks on change.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Removes all mocks.
override
getMocks() → List<NetLensMock>
Returns all mocks in the order they were added.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String id) → void
Removes the mock with id.
override
save(NetLensMock mock) → void
Adds mock, or replaces the mock which has the same id.
override
saveAll(Iterable<NetLensMock> mocks) → void
Adds or replaces all mocks at once.
override
toString() → String
A string representation of this object.
inherited

Operators

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