entityValues<T> method
Retrieves a list of values 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
List<T>? entityValues<T>(String key) {
return isEntity ? Entity.values(key, this) : null;
}