shrink method
void
shrink()
Shrink the buffer
Implementation
void shrink() {
_position < buffer!.length
? buffer!.removeRange(0, _position)
: buffer!.clear();
_position = 0;
}
Shrink the buffer
void shrink() {
_position < buffer!.length
? buffer!.removeRange(0, _position)
: buffer!.clear();
_position = 0;
}