startOffsetEndOffset method
Return a source range that starts at the given startOffset
and ends at
the given endOffset
.
Implementation
SourceRange startOffsetEndOffset(int startOffset, int endOffset) {
var length = endOffset - startOffset;
return SourceRange(startOffset, length);
}