ChannelHeader constructor

const ChannelHeader({
  1. Key? key,
  2. bool showBackButton = true,
  3. VoidCallback? onBackPressed,
  4. VoidCallback? onTitleTap,
  5. bool showTypingIndicator = true,
  6. VoidCallback? onImageTap,
  7. bool showConnectionStateTile = false,
  8. Widget? title,
  9. Widget? subtitle,
  10. Widget? leading,
  11. List<Widget>? actions,
  12. Color? backgroundColor,
})

Creates a channel header

Implementation

const ChannelHeader({
  Key? key,
  this.showBackButton = true,
  this.onBackPressed,
  this.onTitleTap,
  this.showTypingIndicator = true,
  this.onImageTap,
  this.showConnectionStateTile = false,
  this.title,
  this.subtitle,
  this.leading,
  this.actions,
  this.backgroundColor,
})  : preferredSize = const Size.fromHeight(kToolbarHeight),
      super(key: key);