reference property
EntityReference
get
reference
Get a reference to this entity, which can be used to look it up in a repository.
Implementation
EntityReference get reference => EntityReference(
key: key,
name: displayName,
type: _typeResolver?.call(runtimeType) ??
defaultTypeResolver(runtimeType),
);