ClearItemFlags method

Future<void> ClearItemFlags(
  1. FolderId? contextFolderId
)
Clear flags for conversation items. Calling this method results in a call to EWS. The Id of the folder items must belong to in order to be unflagged. If contextFolderId is null, flags for items in conversation across the entire mailbox are cleared.

Implementation

Future<void> ClearItemFlags(FolderId? contextFolderId) async {
  Flag flag = Flag()..FlagStatus = ItemFlagStatus.NotFlagged;

  await _SetFlagStatusForItemsInConversation(contextFolderId, flag);
}