getEntityByUid method

ModelEntity getEntityByUid(
  1. int uid
)

Implementation

ModelEntity getEntityByUid(int uid) {
  final entity = findEntityByUid(uid);
  if (entity == null) throw StateError('entity uid=$uid not found');
  return entity;
}