StreamAttachmentWidgetBuilder class abstract

A builder which is used to build a widget for a given Message and Attachment's. This can also be used to show custom attachments.

See also:

Implementers

Constructors

StreamAttachmentWidgetBuilder()
A builder which is used to build a widget for a given Message and Attachment's. This can also be used to show custom attachments.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
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.
debugAssertCanHandle(Message message, Map<String, List<Attachment>> attachments) bool
Asserts that this builder can handle the given message and attachments.
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

Static Methods

defaultBuilders({required Message message, ShapeBorder? shape, EdgeInsetsGeometry padding = const EdgeInsets.all(4), StreamAttachmentWidgetTapCallback? onAttachmentTap}) List<StreamAttachmentWidgetBuilder>
The default list of builders used by the AttachmentWidgetCatalog.