remaining property

String remaining

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:

Implementation

String get remaining => buffer.substring(index);