entityTypeInfo property
TypeInfo?
entityTypeInfo
Same as entityType. Returns a valid entity TypeInfo.
Implementation
TypeInfo? get entityTypeInfo {
TypeInfo? entityType;
if (type.isEntityReferenceBaseType) {
entityType = arguments0;
} else {
entityType = this;
}
return EntityHandler.isValidEntityType(entityType?.type)
? entityType
: null;
}