RepoServiceStubDefinition.httpStub constructor

const RepoServiceStubDefinition.httpStub({
  1. required String responseStubValue,
  2. int? statusCodeStubValue,
  3. @Default({HttpHeaders.contentTypeHeader : 'application/json; charset=utf-8'}) Map<String, String> headersStubValue,
})

Implementation

const factory RepoServiceStubDefinition.httpStub({
  required String responseStubValue,
  int? statusCodeStubValue,
  @Default({
    HttpHeaders.contentTypeHeader: 'application/json; charset=utf-8',
  })
      Map<String, String> headersStubValue,
}) = _HttpStub;