fileAttachment static method
- Attachment e, {
 - void onFileTap()?,
 
Returns a visual representation of the provided file-Attachment.
Implementation
static Widget fileAttachment(
  Attachment e, {
  void Function(FileAttachment)? onFileTap,
}) {
  return DataAttachment(
    e,
    onPressed: () {
      if (e is FileAttachment) {
        onFileTap?.call(e);
      }
    },
  );
}