copyWith method
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 requestFilter(
- RequestOptions requestOptions
- bool responseFilter(
- Response response
- bool errorFilter(
- 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,
);
}