build method

  1. @override
Widget build(
  1. BuildContext context,
  2. Message message,
  3. Map<String, List<Attachment>> attachments
)
override

Builds a widget for the given message and attachments. This will only be called if canHandle returns true.

Implementation

@override
Widget build(
  BuildContext context,
  Message message,
  Map<String, List<Attachment>> attachments,
) {
  // Returns an empty widget because this builder will be used as a fallback
  // when no other builder can handle the attachments.
  return const SizedBox.shrink();
}