FallbackAttachmentBuilder class
A widget builder for when no other builder can handle the attachments.
Saves you from getting an error when you have an attachment type that is not supported by the SDK.
- Inheritance
-
- Object
- StreamAttachmentWidgetBuilder
- FallbackAttachmentBuilder
Constructors
- FallbackAttachmentBuilder()
-
A widget builder for when no other builder can handle the 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
.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