FilePrinter constructor

FilePrinter({
  1. required String filePath,
})

Implementation

FilePrinter({required this.filePath}) : super() {
  _file = File(filePath);

  if (_file.existsSync()) {
    _file.deleteSync();
  }

  _file.createSync(recursive: true);
}