MockStreamedResponse.badGateway constructor

MockStreamedResponse.badGateway({
  1. Stream<List<int>>? byteStream,
  2. Map<String, String>? headers,
  3. String? statusText,
})

Implementation

factory MockStreamedResponse.badGateway(
        {Stream<List<int>>? byteStream,
        Map<String, String>? headers,
        String? statusText}) =>
    MockStreamedResponse(502,
        byteStream: byteStream, headers: headers, statusText: statusText);