relationshipOrNull property
Relationship?
get
relationshipOrNull
Returns Relationship if this data is Relationship, otherwise null.
Implementation
Relationship? get relationshipOrNull => isRelationship ? relationship : null;