copyWith method

TalkerDioLoggerSettings copyWith({
  1. bool? printResponseData,
  2. bool? printResponseHeaders,
  3. bool? printResponseMessage,
  4. bool? printErrorData,
  5. bool? printErrorHeaders,
  6. bool? printErrorMessage,
  7. bool? printRequestData,
  8. bool? printRequestHeaders,
  9. AnsiPen? requestPen,
  10. AnsiPen? responsePen,
  11. AnsiPen? errorPen,
  12. bool requestFilter(
    1. RequestOptions requestOptions
    )?,
  13. bool responseFilter(
    1. Response response
    )?,
  14. bool errorFilter(
    1. DioException response
    )?,
})

Implementation

TalkerDioLoggerSettings copyWith({
  bool? printResponseData,
  bool? printResponseHeaders,
  bool? printResponseMessage,
  bool? printErrorData,
  bool? printErrorHeaders,
  bool? printErrorMessage,
  bool? printRequestData,
  bool? printRequestHeaders,
  AnsiPen? requestPen,
  AnsiPen? responsePen,
  AnsiPen? errorPen,
  bool Function(RequestOptions requestOptions)? requestFilter,
  bool Function(Response response)? responseFilter,
  bool Function(DioException response)? errorFilter,
}) {
  return TalkerDioLoggerSettings(
    printResponseData: printResponseData ?? this.printResponseData,
    printResponseHeaders: printResponseHeaders ?? this.printResponseHeaders,
    printResponseMessage: printResponseMessage ?? this.printResponseMessage,
    printErrorData: printErrorData ?? this.printErrorData,
    printErrorHeaders: printErrorHeaders ?? this.printErrorHeaders,
    printErrorMessage: printErrorMessage ?? this.printErrorMessage,
    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,
    errorFilter: errorFilter ?? this.errorFilter,
  );
}