readChunk method
Implementation
Future<List<int>> readChunk(File file, int startOffset, int length) async {
final raf = await file.open();
await raf.setPosition(startOffset);
final chunk = await raf.read(length);
await raf.close();
return chunk;
}