ImageAttachmentBuilder constructor

const ImageAttachmentBuilder({
  1. ShapeBorder? shape,
  2. EdgeInsetsGeometry padding = const EdgeInsets.all(2),
  3. BoxConstraints constraints = _kDefaultImageConstraints,
  4. StreamAttachmentWidgetTapCallback? onAttachmentTap,
})

A widget builder for AttachmentType.image attachment type.

This builder is used when a message contains only a single image attachment.

Implementation

const ImageAttachmentBuilder({
  this.shape,
  this.padding = const EdgeInsets.all(2),
  this.constraints = _kDefaultImageConstraints,
  this.onAttachmentTap,
});