saveReport method

Future<void> saveReport(
  1. DiagnosticReport report,
  2. FileSystem fs,
  3. String outputPath
)

Public method or function.

Implementation

Future<void> saveReport(
  DiagnosticReport report,
  FileSystem fs,
  String outputPath,
) async {
  final json = toJson(report);
  await fs.writeAsStringAsync(outputPath, json);
}