skipRemainingKeys method
Skips the remaining key-value pairs in the collection.
This is useful when the Decodable implementation is not interested in the remaining key-value pairs. It must be called when nextKey is not used exhaustively.
Implementation
@override
void skipRemainingKeys() {
var i = _parent._offset;
while (i < _parent.buffer.length) {
if (_parent.buffer[i] == tokenLineFeed) {
_parent._offset = i;
return;
}
i++;
}
_parent._offset = i;
}