source method

Future<Source> source(
  1. String path, [
  2. int? start,
  3. int? end
])

Creates a source that reads the bytes of path from beginning to end.

Implementation

Future<Source> source(String path, [int? start, int? end]) async {
  return file(path).openRead(start, end).source();
}