FileSource constructor

FileSource(
  1. File _file
)

Wraps file. Its length is read synchronously at construction; the file must exist and not be truncated while operations are reading it.

Implementation

FileSource(this._file) : length = _file.lengthSync();