findEntityByUid method

ModelEntity? findEntityByUid(
  1. int uid
)

Implementation

ModelEntity? findEntityByUid(int uid) {
  final idx = entities.indexWhere((e) => e.id.uid == uid);
  return idx < 0 ? null : entities[idx];
}