FlintClient constructor

FlintClient({
  1. String? baseUrl,
  2. Map<String, String> headers = const {},
  3. Map<String, dynamic> defaultQueryParameters = const {},
  4. Duration timeout = const Duration(seconds: 30),
  5. ErrorHandler? onError,
  6. bool throwIfError = false,
  7. RequestDoneCallback? onDone,
  8. bool debug = false,
  9. StatusCodeConfig statusCodeConfig = const StatusCodeConfig(),
})

Implementation

FlintClient({
  this.baseUrl,
  this.headers = const {},
  this.defaultQueryParameters = const {},
  this.timeout = const Duration(seconds: 30),
  this.onError,
  this.throwIfError = false,
  this.onDone,
  this.debug = false,
  this.statusCodeConfig = const StatusCodeConfig(),
});