makeKey method
Key
makeKey()
Constructs the key for the entity.
Subclasses must override this method to return their specific key type.
Implementation
Key makeKey() {
try {
return const EntityKey() as Key;
} catch (_) {
throw UnimplementedError(
"You must override makeKey() and return the current key from sub-entity class.",
);
}
}