configure method

void configure({
  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,
})

Method to update settings of TalkerDioLogger

Implementation

void configure({
  bool? printResponseData,
  bool? printResponseHeaders,
  bool? printResponseMessage,
  bool? printErrorData,
  bool? printErrorHeaders,
  bool? printErrorMessage,
  bool? printRequestData,
  bool? printRequestHeaders,
  AnsiPen? requestPen,
  AnsiPen? responsePen,
  AnsiPen? errorPen,
}) {
  settings = settings.copyWith(
    printRequestData: printRequestData,
    printRequestHeaders: printRequestHeaders,
    printResponseData: printResponseData,
    printErrorData: printErrorData,
    printErrorHeaders: printErrorHeaders,
    printErrorMessage: printErrorMessage,
    printResponseHeaders: printResponseHeaders,
    printResponseMessage: printResponseMessage,
    requestPen: requestPen,
    responsePen: responsePen,
    errorPen: errorPen,
  );
}