entityType<T> method
Retrieves an object of a specific type associated with the given key from the entity.
Implementation
T? entityType<T>(
String key,
EntityBuilder<T> builder,
) {
return isEntity ? Entity.type(key, this, builder) : null;
}