reverseWith method Null safety

DeleteResult reverseWith(
  1. UidResponseCode? result
)

Reverses the result and includes the new sequence from the given CopyUidResult.

Implementation

DeleteResult reverseWith(UidResponseCode? result) {
  if (result?.targetSequence != null) {
    return DeleteResult(isUndoable, action, originalSequence, targetMailbox,
        result!.targetSequence, originalMailbox);
  }
  return reverse();
}