FakeProblem constructor

const FakeProblem(
  1. int status,
  2. String code, {
  3. JsonMap? current,
  4. String? reason,
  5. Duration? retryAfter,
  6. List<JsonMap>? errors,
  7. JsonMap extra = const {},
})

Creates the problem with status and code; current is the current object of a conflict, reason a refinement, retryAfter the wait of 429 and 503.

Implementation

const FakeProblem(
  this.status,
  this.code, {
  this.current,
  this.reason,
  this.retryAfter,
  this.errors,
  this.extra = const {},
});