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>
31 lines
662 B
Dart
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 ?? '📋';
|
|
}
|