receive method
Implementation
void receive(Uint8List bytes) {
// handle trailing here
if (isEmpty) {
if (bytes.seekChar(_startId) case Uint8List result) copy(result);
} else {
add(bytes);
}
}
void receive(Uint8List bytes) {
// handle trailing here
if (isEmpty) {
if (bytes.seekChar(_startId) case Uint8List result) copy(result);
} else {
add(bytes);
}
}