hasFlag method Null safety

bool hasFlag(
  1. MailboxFlag flag
)

Checks of the mailbox has the given flag

Implementation

bool hasFlag(MailboxFlag flag) {
  return flags.contains(flag);
}