Label class

Labels are used to categorize messages and threads within the user's mailbox.

Constructors

Label()
Label.fromJson(Map _json)

Properties

color LabelColor
The color to assign to the label. Color is only available for labels that have their type set to user.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
The immutable ID of the label.
read / write
labelListVisibility String
The visibility of the label in the label list in the Gmail web interface. Possible string values are: [...]
read / write
messageListVisibility String
The visibility of messages with this label in the message list in the Gmail web interface. Possible string values are: [...]
read / write
messagesTotal int
The total number of messages with the label.
read / write
messagesUnread int
The number of unread messages with the label.
read / write
name String
The display name of the label.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
threadsTotal int
The total number of threads with the label.
read / write
threadsUnread int
The number of unread threads with the label.
read / write
type String
The owner type for the label. User labels are created by the user and can be modified and deleted by the user and can be applied to any message or thread. System labels are internally created and cannot be added, modified, or deleted. System labels may be able to be applied to or removed from messages and threads under some circumstances but this is not guaranteed. For example, users can apply and remove the INBOX and UNREAD labels from messages and threads, but cannot apply or remove the DRAFTS or SENT labels from messages or threads. Possible string values are: [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited