FileAttachment constructor

const FileAttachment({
  1. required String name,
  2. required String mimeType,
  3. required Uint8List bytes,
})

Creates a FileAttachment with the given name, MIME type, and bytes.

name is the name of the file attachment. mimeType is the MIME type of the file. bytes is the binary content of the file.

Implementation

const FileAttachment({
  required super.name,
  required this.mimeType,
  required this.bytes,
});