file property
The current file being written to.
Implementation
Future<File> get file async {
if (_file == null) {
final newFilename = await filename;
_file = File(newFilename);
info("Creating file '$newFilename'");
addEvent(FileDataManagerEvent(
FileDataManagerEventTypes.fileCreated, newFilename));
}
return _file!;
}