StreamImageAttachment constructor

const StreamImageAttachment({
  1. Key? key,
  2. required Message message,
  3. required Attachment image,
  4. ShapeBorder? shape,
  5. BoxConstraints constraints = const BoxConstraints(),
  6. Size imageThumbnailSize = const Size(400, 400),
  7. String imageThumbnailResizeType = 'clip',
  8. String imageThumbnailCropType = 'center',
})

Shows an image attachment in a StreamMessageWidget.

Implementation

const StreamImageAttachment({
  super.key,
  required this.message,
  required this.image,
  this.shape,
  this.constraints = const BoxConstraints(),
  this.imageThumbnailSize = const Size(400, 400),
  this.imageThumbnailResizeType = 'clip',
  this.imageThumbnailCropType = 'center',
});