GalleryHeader constructor

const GalleryHeader({
  1. Key? key,
  2. required Message message,
  3. int currentIndex = 0,
  4. bool showBackButton = true,
  5. VoidCallback? onBackPressed,
  6. VoidCallback? onShowMessage,
  7. VoidCallback? onTitleTap,
  8. VoidCallback? onImageTap,
  9. String userName = '',
  10. String sentAt = '',
  11. Color? backgroundColor,
  12. AttachmentActionsBuilder? attachmentActionsModalBuilder,
})

Creates a channel header

Implementation

const GalleryHeader({
  Key? key,
  required this.message,
  this.currentIndex = 0,
  this.showBackButton = true,
  this.onBackPressed,
  this.onShowMessage,
  this.onTitleTap,
  this.onImageTap,
  this.userName = '',
  this.sentAt = '',
  this.backgroundColor,
  this.attachmentActionsModalBuilder,
})  : preferredSize = const Size.fromHeight(kToolbarHeight),
      super(key: key);