file property

File get file

Returns the File object associated with this stream.

Returns

The File object for this stream.

Example

final input = FileInputStream('data.bin');
final file = input.file;
print('Reading from: ${file.path}');
print('File size: ${await file.length()} bytes');

Implementation

File get file => _file;