printLogs method

dynamic printLogs(
  1. Dio dio
)

Implementation

printLogs(Dio dio) {
  dio.interceptors.add(
    LogInterceptor(
      request: true,
      requestBody: true,
      requestHeader: true,
      responseBody: true,
      responseHeader: true,
      error: true,
      logPrint: (object) {
        ConditionalLogs().customLog("$object");
      },
    ),
  );
}