addAttachment method

Future<Attachment> addAttachment({
  1. required String name,
  2. required String contentType,
  3. required Uint8List data,
})

Adds a new attachment to this feature.

Parameters:

  • name — The attachment name.
  • contentType — The type of content.
  • data — The attachment data.

Return Value: A Future that returns an Attachment.