queueOutage method
Enqueues an outage; the next request will not receive a response.
Adds an outage event to the response queue. Each request removes the earliest enqueued response
before sending it. When an outage is encountered, no response is sent. Specify number of outage events
with count
.
Implementation
void queueOutage({int count = 1}) {
_responseQueue.add(_MockServerResponse(outageCount: count));
}