span method

FileSpan span (
  1. int start,
  2. [int end]
)

Returns a span from start to end (exclusive).

If end isn't passed, it defaults to the end of the file.

Implementation

FileSpan span(int start, [int end]) {
  end ??= length;
  return _FileSpan(this, start, end);
}