MixedAttachmentBuilder class

A widget builder for Mixed attachment type.

This builder is used when a message contains a mix of media type and file or url preview attachments.

This builder will render first the url preview or file attachment and then the media attachments.

Inheritance

Constructors

MixedAttachmentBuilder({EdgeInsetsGeometry padding = const EdgeInsets.all(4), StreamAttachmentWidgetTapCallback? onAttachmentTap})
A widget builder for Mixed attachment type.

Properties

hashCode int
The hash code for this object.
no setterinherited
padding EdgeInsetsGeometry
The padding to apply to the mixed attachment widget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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