StreamChannelName constructor

StreamChannelName({
  1. Key? key,
  2. required Channel channel,
  3. TextStyle? textStyle,
  4. TextOverflow textOverflow = TextOverflow.ellipsis,
})

Instantiate a new ChannelName

Implementation

StreamChannelName({
  super.key,
  required this.channel,
  this.textStyle,
  this.textOverflow = TextOverflow.ellipsis,
}) : assert(
        channel.state != null,
        'Channel ${channel.id} is not initialized',
      );