file property

File get file

Returns the File object associated with this stream.

Returns

The File object for this stream.

Example

final output = FileOutputStream('output.bin');
final file = output.file;
print('Writing to: ${file.path}');

Implementation

File get file => _file;