MockResponse.ok constructor

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

Implementation

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