deletedMessageViewOrNull property

DeletedMessageView? get deletedMessageViewOrNull

Returns DeletedMessageView if this data is DeletedMessageView, otherwise null.

Implementation

DeletedMessageView? get deletedMessageViewOrNull =>
    isDeletedMessageView ? deletedMessageView : null;