entityType<T> method

T? entityType<T>(
  1. String key,
  2. EntityBuilder<T> builder
)

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;
}