span method

FileSpan span (int start, [ int end ])

Returns a span in this 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]) {
  if (end == null) end = length;
  return new _FileSpan(this, start, end);
}