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

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<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