getTranslated method

SourceRange getTranslated(
  1. int delta
)

Return a source range with the same length as this source range but whose offset is delta characters after the offset of this source range.

Implementation

SourceRange getTranslated(int delta) => SourceRange(offset + delta, length);