FileAttachmentBuilder class

A widget builder for AttachmentType.file attachment type.

Inheritance

Constructors

FileAttachmentBuilder({ShapeBorder? shape, Color? backgroundColor, BoxConstraints constraints = const BoxConstraints(), EdgeInsetsGeometry padding = const EdgeInsets.all(4), StreamAttachmentWidgetTapCallback? onAttachmentTap})
A widget builder for AttachmentType.file attachment type.
const

Properties

backgroundColor Color?
The background color of the file attachment.
final
constraints BoxConstraints
The constraints to apply to the file attachment widget.
final
hashCode int
The hash code for this object.
no setterinherited
onAttachmentTap StreamAttachmentWidgetTapCallback?
The callback to call when the attachment is tapped.
final
padding EdgeInsetsGeometry
The padding to apply to the file attachment widget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape ShapeBorder?
The shape of the file attachment.
final

Methods

build(BuildContext context, Message message, Map<String, List<Attachment>> attachments) Widget
Builds a widget for the given message and attachments. This will only be called if canHandle returns true.
override
canHandle(Message message, Map<String, List<Attachment>> attachments) bool
Determines whether this builder can handle the given message and attachments. If this returns true, build will be called. Otherwise, the next builder in the list will be called.
override
debugAssertCanHandle(Message message, Map<String, List<Attachment>> attachments) bool
Asserts that this builder can handle the given message and attachments.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited