canHandle method

  1. @override
bool canHandle(
  1. Message message,
  2. Map<String, List<Attachment>> attachments
)
override

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.

Implementation

@override
bool canHandle(
  Message message,
  Map<String, List<Attachment>> attachments,
) {
  // Always returns True because this builder will be used as a fallback when
  // no other builder can handle the attachments.
  return true;
}