copy method

StreamBundle copy()

Implementation

StreamBundle copy() {
  StreamBundle copy = StreamBundle()
    ..isEnd = isEnd
    ..isError = isError
    ..bytesBuffer = bytesBuffer;
  bytesBuffer = [];
  return copy;
}