decodeChannel method

  1. @override
(Uint8List, Channel) decodeChannel(
  1. Uint8List data,
  2. Channel channel
)
override

Implementation

@override
(Uint8List, Channel) decodeChannel(Uint8List data, Channel channel) {
  if (data.isEmpty) {
    return (data, channel);
  }
  final rawChannel = data.first;
  final rawData = data.sublist(1);
  return (rawData, rawChannel);
}