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 ?? '📋'; }