patchNoteAttachment static method

Future<Attachment?> patchNoteAttachment(
  1. String idAttachment,
  2. String title,
  3. String content
)

Implementation

static Future<Attachment?> patchNoteAttachment(
    String idAttachment, String title, String content) async {
  File? file = await FileService.createMdFile(title, content);
  if (file == null) return null;
  return await patchAttachment(idAttachment, title, file, isNote: true);
}