bonpoint/mobile/lib/data/models/movement_detail.dart
Julien Martin b8faf3b4df Ajoute l'espace parent : PIN, grille de règles, historique et annulation.
Phase 2 du MVP Flutter : vérification PIN locale, application des règles par famille, suivi des mouvements et correction avec plancher à 0.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-12 12:24:42 +02:00

31 lines
662 B
Dart

class MovementDetail {
const MovementDetail({
required this.id,
required this.childId,
required this.childName,
required this.delta,
required this.createdAt,
this.note,
this.ruleLabel,
this.ruleIcon,
this.rewardLabel,
this.rewardIcon,
});
final int id;
final int childId;
final String childName;
final int delta;
final DateTime createdAt;
final String? note;
final String? ruleLabel;
final String? ruleIcon;
final String? rewardLabel;
final String? rewardIcon;
String get label =>
rewardLabel ?? ruleLabel ?? note ?? 'Mouvement';
String get icon => rewardIcon ?? ruleIcon ?? '📋';
}