hasFlag method

bool hasFlag(
  1. String name
)

Checks if the messages has the message flag with the specified name.

Implementation

bool hasFlag(String name) {
  final mimeFlags = flags;
  return (mimeFlags != null) && mimeFlags.contains(name);
}