ChannelException constructor

const ChannelException(
  1. String message, {
  2. String? code,
})

Creates a channel exception.

Implementation

const ChannelException(String message, {String? code})
  : super(code ?? ErrorCodes.unknownChannel, message);