StreamChannelListTile constructor
StreamChannelListTile({
- Key? key,
- required Channel channel,
- Widget? leading,
- Widget? title,
- Widget? subtitle,
- Widget? trailing,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
- Color? tileColor,
- VisualDensity visualDensity = VisualDensity.compact,
- EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 8),
- WidgetBuilder? unreadIndicatorBuilder,
- Widget sendingIndicatorBuilder()?,
- bool selected = false,
- Color? selectedTileColor,
Creates a new instance of StreamChannelListTile widget.
Implementation
StreamChannelListTile({
super.key,
required this.channel,
this.leading,
this.title,
this.subtitle,
this.trailing,
this.onTap,
this.onLongPress,
this.tileColor,
this.visualDensity = VisualDensity.compact,
this.contentPadding = const EdgeInsets.symmetric(horizontal: 8),
this.unreadIndicatorBuilder,
this.sendingIndicatorBuilder,
this.selected = false,
this.selectedTileColor,
}) : assert(
channel.state != null,
'Channel ${channel.id} is not initialized',
);