Checks if the messages has the message flag with the specified name.
name
bool hasFlag(String name) { final mimeFlags = flags; return (mimeFlags != null) && mimeFlags.contains(name); }