GiphyAttachmentBuilder class
A widget builder for AttachmentType.giphy attachment type.
This builder is used when a message contains only a single giphy attachment.
- Inheritance
-
- Object
- StreamAttachmentWidgetBuilder
- GiphyAttachmentBuilder
Constructors
- GiphyAttachmentBuilder({ShapeBorder? shape, EdgeInsetsGeometry padding = const EdgeInsets.all(2), BoxConstraints constraints = _kDefaultGiphyConstraints, StreamAttachmentWidgetTapCallback? onAttachmentTap})
-
A widget builder for AttachmentType.giphy attachment type.
const
Properties
- constraints → BoxConstraints
-
The constraints to apply to the giphy 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 giphy attachment widget.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → ShapeBorder?
-
The shape of the giphy attachment.
final
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
.override -
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.override -
debugAssertCanHandle(
Message message, Map< String, List< attachments) → boolAttachment> > -
Asserts that this builder can handle the given
message
andattachments
.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