StreamChannelListTile constructor

StreamChannelListTile({
  1. Key? key,
  2. required Channel channel,
  3. Widget? leading,
  4. Widget? title,
  5. Widget? subtitle,
  6. Widget? trailing,
  7. GestureTapCallback? onTap,
  8. GestureLongPressCallback? onLongPress,
  9. Color? tileColor,
  10. VisualDensity visualDensity = VisualDensity.compact,
  11. EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 8),
  12. WidgetBuilder? unreadIndicatorBuilder,
  13. Widget sendingIndicatorBuilder(
    1. BuildContext,
    2. Message
    )?,
  14. bool selected = false,
  15. 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',
      );