MockResponse constructor

const MockResponse({
  1. int statusCode = 200,
  2. dynamic body,
  3. Map<String, String> headers = const {},
  4. Duration delay = Duration.zero,
  5. String? error,
  6. DioExceptionType errorType = DioExceptionType.connectionError,
})

Implementation

const MockResponse({
  this.statusCode = 200,
  this.body,
  this.headers = const {},
  this.delay = Duration.zero,
  this.error,
  this.errorType = DioExceptionType.connectionError,
});