StreamFileAttachment constructor

const StreamFileAttachment({
  1. Key? key,
  2. required Message message,
  3. required Attachment file,
  4. Widget? title,
  5. Widget? trailing,
  6. ShapeBorder? shape,
  7. Color? backgroundColor,
  8. BoxConstraints constraints = const BoxConstraints(),
})

Displays file attachments that have been sent in a chat.

Used in MessageWidget.

Implementation

const StreamFileAttachment({
  super.key,
  required this.message,
  required this.file,
  this.title,
  this.trailing,
  this.shape,
  this.backgroundColor,
  this.constraints = const BoxConstraints(),
});