skip method
Skips length
characters in source delta.
Returns last skipped operation, or null
if there was nothing to skip.
Implementation
Operation? skip(int length) {
int skipped = 0;
Operation? op;
while (skipped < length && hasNext) {
int opLength = peekLength() as int;
int skip = math.min(length - skipped, opLength);
op = next(skip);
skipped += op!.length!;
}
return op;
}