getReporter method

Reporter<UnusedCodeFileReport, UnusedCodeReportParams>? getReporter({
  1. required String name,
  2. required IOSink output,
})

Returns a reporter for the given name. Use the reporter to convert analysis reports to console, JSON or other supported format.

Implementation

Reporter<UnusedCodeFileReport, UnusedCodeReportParams>? getReporter({
  required String name,
  required IOSink output,
}) =>
    reporter(
      name: name,
      output: output,
    );