setBufferSize method Null safety
- int val
Implementation
void setBufferSize(int val) {
bufferSize = val;
if (buffer.length > bufferSize) {
while (buffer.length > bufferSize) {
buffer.removeFirst();
}
}
}
void setBufferSize(int val) {
bufferSize = val;
if (buffer.length > bufferSize) {
while (buffer.length > bufferSize) {
buffer.removeFirst();
}
}
}