encodeChannel method

  1. @override
(T, Channel)? encodeChannel(
  1. T data,
  2. Channel channel
)
override

Implementation

@override
(T, Channel)? encodeChannel(T data, Channel channel) {
  if (channel != this.channel &&
      filterEncoded &&
      (!allowAnyChannel || channel != kAnyChannel)) {
    return null;
  }
  return (data, channel);
}