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:
AttachmentWidgetBuilderManager
, which is used to manage a list of StreamAttachmentWidgetBuilder's.
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< attachments) → WidgetAttachment> > -
Builds a widget for the given
message
andattachments
. This will only be called if canHandle returnstrue
. -
canHandle(
Message message, Map< String, List< attachments) → boolAttachment> > -
Determines whether this builder can handle the given
message
andattachments
. If this returnstrue
, build will be called. Otherwise, the next builder in the list will be called. -
debugAssertCanHandle(
Message message, Map< String, List< attachments) → boolAttachment> > -
Asserts that this builder can handle the given
message
andattachments
. -
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> ? customAttachmentBuilders}) → List<StreamAttachmentWidgetBuilder> -
The default list of builders used by the
AttachmentWidgetCatalog
.