feat(#157): consommer le flag API sans_responsable.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-17 19:33:21 +02:00
co-authored by Cursor
parent ef7512dc1e
commit b0dddd6695
2 changed files with 19 additions and 6 deletions
+1 -3
View File
@@ -1,9 +1,7 @@
import 'package:p_tits_pas/models/enfant_admin_model.dart';
/// Enfant sans lien parent (orphelins daffiliation) — ticket #157.
bool enfantHasNoResponsable(EnfantAdminModel enfant) {
return !enfant.parentLinks.any((l) => l.parentId.trim().isNotEmpty);
}
bool enfantHasNoResponsable(EnfantAdminModel enfant) => enfant.hasNoResponsable;
/// Message vigilance liste Enfants (même usage que [amPlacesVigilanceMessage]).
String? enfantSansResponsableVigilanceMessage(EnfantAdminModel enfant) {