I am trying to disable some of the widgets from the extent report. And I tried by adding this code
var htmlReporter = new ExtentHtmlReporter(testContext.TestDir);