StreamMessageInputAttachmentList constructor

const StreamMessageInputAttachmentList({
  1. Key? key,
  2. required Iterable<Attachment> attachments,
  3. ValueSetter<Attachment>? onRemovePressed,
  4. AttachmentItemBuilder? fileAttachmentBuilder,
  5. AttachmentItemBuilder? mediaAttachmentBuilder,
  6. AttachmentListBuilder? fileAttachmentListBuilder,
  7. AttachmentListBuilder? mediaAttachmentListBuilder,
})

Widget used to display the list of attachments added to the message input.

By default, it displays the list of file attachments and media attachments separately.

You can customize the list of file attachments and media attachments using fileAttachmentListBuilder and mediaAttachmentListBuilder respectively.

You can also customize the attachment item using fileAttachmentBuilder and mediaAttachmentBuilder respectively.

You can override the default action of removing an attachment by providing onRemovePressed.

Implementation

const StreamMessageInputAttachmentList({
  super.key,
  required this.attachments,
  this.onRemovePressed,
  this.fileAttachmentBuilder,
  this.mediaAttachmentBuilder,
  this.fileAttachmentListBuilder,
  this.mediaAttachmentListBuilder,
});