nameQualified property

String nameQualified

The qualified name (including parent names), separated by ,

For example, If the underlying instance is a:

Country => United States

Region => United States, Texas

City => United States, Texas, Austin

Implementation

String get nameQualified => this is City
    ? [(this as City).state.nameQualified, name].join(', ')
    : this is Region
        ? [(this as Region).country.nameQualified, name].join(', ')
        : this is Country
            ? (this as Country).name
            : name;