MagicHeaderAndLengthByteTransformer.broadcast constructor

MagicHeaderAndLengthByteTransformer.broadcast({
  1. bool sync = false,
  2. bool? cancelOnError,
  3. List<int?>? header,
  4. int maxLen = 1024,
  5. Duration clearTimeout = const Duration(seconds: 1),
})

Implementation

MagicHeaderAndLengthByteTransformer.broadcast(
    {bool sync = false, this.cancelOnError, this.header, this.maxLen = 1024, this.clearTimeout = const Duration(seconds: 1)}) {
  _partial = [];
  _controller = new StreamController<Uint8List>.broadcast(
      onListen: _onListen, onCancel: _onCancel, sync: sync);
}