MockResponse constructor

const MockResponse({
  1. int status = 200,
  2. Object? body,
  3. Map<String, String> headers = const {'content-type' : 'application/json'},
})

Build a stubbed response.

Implementation

const MockResponse({
  this.status = 200,
  this.body,
  this.headers = const {'content-type': 'application/json'},
});