makeKey method

Key makeKey()

Constructs the key for the entity.

Implementation

Key makeKey() {
  try {
    return const EntityKey() as Key;
  } catch (_) {
    return throw UnimplementedError(
      "You must override makeKey() and return the current key from sub-entity class.",
    );
  }
}