removeFlag method

void removeFlag(
  1. String name
)

Removes the flag with the specified name from this message.

Note that this only affects this message instance and is not persisted or reported to the mail service automatically.

Implementation

void removeFlag(String name) {
  if (flags == null) {
    flags = [];
  } else {
    flags!.remove(name);
  }
}