failNext method
void
failNext(})
Makes the next times calls of operationId fail with status / code.
Implementation
void failNext(
String operationId, {
int status = 503,
String code = 'engine-unavailable',
String? detail,
int times = 1,
}) => _failNext[operationId] = (
Problem(
type: 'https://freedome.nativemind.us/problems/$code',
title: code,
code: code,
status: status,
detail: detail ?? 'injected by FakeDomeServer.failNext',
),
status,
times,
);