remaining property
The part of buffer that has yet to be consumed, spanning from index to the end of buffer.
Accessing this property does not consume the remaining part. If developers intend to consume the remaining part of the buffer, they should access this property and then set index to end to indicate that the entire buffer has been consumed.
You might also be interested in:
- current, for getting the current character;
- getQuotedWord, for getting the next quoted word in buffer;
- getWord, for getting the next word in buffer ignoring quotes.
Implementation
String get remaining => buffer.substring(index);