MessageFlags class

Message flags using bitmap for efficient storage

Constructors

MessageFlags(int bitmap)
const
MessageFlags.none()
const

Properties

bitmap → int
final
hashCode → int
The hash code for this object.
no setteroverride
isDeleted → bool
no setter
isDraft → bool
no setter
isFlagged → bool
no setter
isSeen → bool
Check individual flags
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
withDeleted() → MessageFlags
withDraft() → MessageFlags
withFlagged() → MessageFlags
withoutDeleted() → MessageFlags
withoutDraft() → MessageFlags
withoutFlagged() → MessageFlags
withoutSeen() → MessageFlags
Create new flags with flag removed
withSeen() → MessageFlags
Create new flags with additional flag set

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

deleted → const int
draft → const int
flagged → const int
seen → const int
Flag constants