FileAttachment constructor

const FileAttachment({
  1. Key? key,
  2. required Message message,
  3. required Attachment attachment,
  4. Size? size,
  5. Widget? title,
  6. Widget? trailing,
  7. VoidCallback? onAttachmentTap,
})

Constructor for creating a widget when attachment is of type 'file'

Implementation

const FileAttachment({
  Key? key,
  required Message message,
  required Attachment attachment,
  Size? size,
  this.title,
  this.trailing,
  this.onAttachmentTap,
}) : super(
        key: key,
        message: message,
        attachment: attachment,
        size: size,
      );