peekLength method
Returns length of next operation without consuming it.
Returns double.infinity if there is no more operations left to iterate.
Implementation
num peekLength() {
if (_index < delta.length) {
final Operation operation = delta._operations[_index];
return operation.length! - _offset;
}
return double.infinity;
}