MockResponse.methodNotAllowed constructor

MockResponse.methodNotAllowed({
  1. dynamic body,
  2. Map<String, String>? headers,
  3. String? statusText,
})

Implementation

factory MockResponse.methodNotAllowed(
        {body, Map<String, String>? headers, String? statusText}) =>
    MockResponse(405, body: body, headers: headers, statusText: statusText);