fileSync method

HashDigest fileSync(
  1. dynamic input, {
  2. int start = 0,
  3. int? end,
  4. int bufferSize = 2048,
})

Converts the input file and returns a HashDigest synchronously.

If start is present, the file will be read from byte-offset start. Otherwise from the beginning (index 0).

If end is present, only bytes up to byte-index end will be read. Otherwise, until end of file.

If bufferSize is present, the file will be read in chunks of this size. By default the bufferSize is 2048.

Implementation

HashDigest fileSync(
  input, {
  int start = 0,
  int? end,
  int bufferSize = 2048,
}) {
  throw UnsupportedError('Unavailable for this platform');
}