typeEntity property

Entity get typeEntity

The registry key for this dependency: returns DependencyMetadata.preemptivetypeEntity if one was supplied, otherwise the runtime type of the wrapped value.

Implementation

Entity get typeEntity => switch (metadata) {
      Some(value: final m) when !m.preemptivetypeEntity.isDefault() =>
        m.preemptivetypeEntity,
      _ => TypeEntity(_value.runtimeType),
    };