deleteOrNull property

Delete? get deleteOrNull

Returns Delete if this data is Delete, otherwise null.

Implementation

Delete? get deleteOrNull => isDelete ? delete : null;