import 'package:tallee/core/enums.dart'; import 'package:tallee/data/models/game.dart'; import 'package:tallee/data/models/group.dart'; import 'package:uuid/uuid.dart'; class Statistic { final String id; final StatisticType type; final List scopes; final Timeframe? timeframe; final List? selectedGroups; final List? selectedGames; final int displayCount; Statistic({ required this.type, required this.scopes, this.timeframe, this.selectedGroups, this.selectedGames, this.displayCount = 5, String? id, }) : id = id ?? const Uuid().v4(); @override String toString() { return 'Statistic(id: $id, type: $type, scopes: $scopes, timeframe: $timeframe, selectedGroups: $selectedGroups, selectedGames: $selectedGames)'; } }