entityValue<T> method

T? entityValue<T>(
  1. String key, [
  2. EntityBuilder<T>? builder
])

Retrieves a value associated with the given key from the entity.

If the object is not an entity or if the key doesn't exist, returns null.

Implementation

T? entityValue<T>(
  String key, [
  EntityBuilder<T>? builder,
]) {
  return isEntity ? Entity.value(key, this, builder) : null;
}