hasPendingInput property

bool get hasPendingInput

Whether the parser is holding back input from previous write calls: an incomplete escape sequence or the high half of a surrogate pair split across chunks. While this is true, new input must go through the parser so the held-back bytes are not reordered behind it.

Implementation

bool get hasPendingInput =>
    _state != _ParserState.ground ||
    _queue.isNotEmpty ||
    _queue.hasPendingSurrogate;