copyWith method
TalkerDioLoggerSettings
copyWith(
{ - bool? printResponseData,
- bool? printResponseMessage,
- bool? printRequestData,
- AnsiPen? requestPen,
- AnsiPen? responsePen,
- AnsiPen? errorPen,
- bool requestFilter(
- RequestOptions requestOptions
)?,
- bool responseFilter(
- 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,
);
}