file property

File get file

Returns the File object associated with this reader.

Returns

The File object for this reader.

Example

final reader = FileReader('document.txt');
final file = reader.file;
print('Reading from: ${file.path}');
print('File size: ${await file.length()} bytes');

Implementation

File get file => _file;