typeName property

String? typeName

Implementation

String? get typeName {
  switch (this) {
    case Relationship.parent:
      return 'PARENT';
    case Relationship.child:
      return 'CHILD';
    case Relationship.sibling:
      return 'SIBLING';
    case Relationship.other:
      return null;
  }
}