StubOfflineFirstWithRest constructor
StubOfflineFirstWithRest({
- required String baseEndpoint,
- required Iterable<
StubOfflineFirstRestResponse> responses,
Generate mocks for an OfflineFirstWithRestModel. Instantiation automatically stubs REST responses.
For convenience, your data structure only needs to be defined once. Include a sample API
response in a sibling /api/
directory (api
can be changed by overwriting apiResponse
).
Implementation
StubOfflineFirstWithRest({
required this.baseEndpoint,
required this.responses,
});