copyWith method

TalkerDioLoggerSettings copyWith({
  1. bool? printResponseData,
  2. bool? printResponseHeaders,
  3. bool? printResponseMessage,
  4. bool? printRequestData,
  5. bool? printRequestHeaders,
  6. AnsiPen? requestPen,
  7. AnsiPen? responsePen,
  8. AnsiPen? errorPen,
  9. bool requestFilter(
    1. RequestOptions requestOptions
    )?,
  10. bool responseFilter(
    1. Response response
    )?,
})

Implementation

TalkerDioLoggerSettings copyWith({
  bool? printResponseData,
  bool? printResponseHeaders,
  bool? printResponseMessage,
  bool? printRequestData,
  bool? printRequestHeaders,
  AnsiPen? requestPen,
  AnsiPen? responsePen,
  AnsiPen? errorPen,
  bool Function(RequestOptions requestOptions)? requestFilter,
  bool Function(Response response)? responseFilter,
}) {
  return TalkerDioLoggerSettings(
    printResponseData: printResponseData ?? this.printResponseData,
    printResponseHeaders: printResponseHeaders ?? this.printResponseHeaders,
    printResponseMessage: printResponseMessage ?? this.printResponseMessage,
    printRequestData: printRequestData ?? this.printRequestData,
    printRequestHeaders: printRequestHeaders ?? this.printRequestHeaders,
    requestPen: requestPen ?? this.requestPen,
    responsePen: responsePen ?? this.responsePen,
    errorPen: errorPen ?? this.errorPen,
    requestFilter: requestFilter ?? this.requestFilter,
    responseFilter: responseFilter ?? this.responseFilter,
  );
}