entityType property
Type?
entityType
Returns a valid entity Type. If this TypeInfo is an EntityReference it will return the EntityReference.type. See EntityHandler.isValidEntityType.
Implementation
Type? get entityType {
var type = this.type;
Type? entityType;
if (type.isEntityReferenceBaseType) {
entityType = arguments0?.type;
} else {
entityType = type;
}
return EntityHandler.isValidEntityType(entityType) ? entityType : null;
}