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