postNoteAttachment static method

Future<Attachment?> postNoteAttachment(
  1. String title,
  2. String content
)

Implementation

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