adultContentPrefOrNull property

AdultContentPref? get adultContentPrefOrNull

Returns AdultContentPref if this data is AdultContentPref, otherwise null.

Implementation

AdultContentPref? get adultContentPrefOrNull =>
    isAdultContentPref ? adultContentPref : null;