DeleteResult class Null safety

Provides information about a delete action

Constructors

DeleteResult(bool isUndoable, DeleteAction action, MessageSequence? originalSequence, Mailbox? originalMailbox, MessageSequence? targetSequence, Mailbox? targetMailbox)
Creates a new result for an delete call

Properties

action DeleteAction
The internal action that was used to delete
final
hashCode int
The hash code for this object. [...]
read-only, inherited
isUndoable bool
Is this delete result undoable?
read / write
originalMailbox Mailbox?
The originating mailbox
final
originalSequence MessageSequence?
The original message sequence used
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
targetMailbox Mailbox?
The target mailbox, can be null
final
targetSequence MessageSequence?
The resulting message sequence of the deleted messages
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
reverse() DeleteResult
Reverses the result so that the original sequence and mailbox becomes the target ones.
reverseWith(UidResponseCode? result) DeleteResult
Reverses the result and includes the new sequence from the given CopyUidResult.
toString() String
A string representation of this object. [...]
inherited

Operators

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