takeBinaryData method

dynamic takeBinaryData(
  1. dynamic binData
)

Implementation

takeBinaryData(binData) {
  buffers.add(binData);
  if (buffers.length == reconPack!['attachments']) {
    // done with buffer list

    var packet =
        Binary.reconstructPacket(reconPack!, buffers.cast<List<int>>());

    finishedReconstruction();
    return packet;
  }
  return null;
}