saveReports method

Future<void> saveReports(
  1. String path
)

Save error reports to file.

Implementation

Future<void> saveReports(String path) async {
  final file = File(path);
  await file.parent.create(recursive: true);
  await file.writeAsString(exportReports());
}