moveMessageToFlag method Null safety

Future<MoveResult> moveMessageToFlag(
  1. MimeMessage message,
  2. MailboxFlag flag
)

Moves the specified message to the folder flagged with the specified mailbox flag.

Implementation

Future<MoveResult> moveMessageToFlag(MimeMessage message, MailboxFlag flag) {
  return moveMessagesToFlag(MessageSequence.fromMessage(message), flag);
}