Revert "Merge branch 'feature/193-statisticsview-rework' into development"
All checks were successful
Push Pipeline / update_version (push) Successful in 6s
Push Pipeline / generate_licenses (push) Successful in 38s
Push Pipeline / generate_localizations (push) Successful in 29s
Push Pipeline / test (push) Successful in 1m35s
Push Pipeline / sort_arb_files (push) Successful in 31s
Push Pipeline / format (push) Successful in 55s
Push Pipeline / build (push) Successful in 4m58s
All checks were successful
Push Pipeline / update_version (push) Successful in 6s
Push Pipeline / generate_licenses (push) Successful in 38s
Push Pipeline / generate_localizations (push) Successful in 29s
Push Pipeline / test (push) Successful in 1m35s
Push Pipeline / sort_arb_files (push) Successful in 31s
Push Pipeline / format (push) Successful in 55s
Push Pipeline / build (push) Successful in 4m58s
This reverts commit24f49e17b9, reversing changes made todba6c218d6. # Conflicts: # pubspec.yaml
This commit is contained in:
@@ -1,48 +0,0 @@
|
||||
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<StatisticScope> scopes;
|
||||
final Timeframe? timeframe;
|
||||
final List<Group>? selectedGroups;
|
||||
final List<Game>? 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)';
|
||||
}
|
||||
|
||||
Statistic copyWith({
|
||||
StatisticType? type,
|
||||
List<StatisticScope>? scopes,
|
||||
Timeframe? timeframe,
|
||||
List<Group>? selectedGroups,
|
||||
List<Game>? selectedGames,
|
||||
int? displayCount,
|
||||
}) {
|
||||
return Statistic(
|
||||
id: id,
|
||||
type: type ?? this.type,
|
||||
scopes: scopes ?? this.scopes,
|
||||
timeframe: timeframe ?? this.timeframe,
|
||||
selectedGroups: selectedGroups ?? this.selectedGroups,
|
||||
selectedGames: selectedGames ?? this.selectedGames,
|
||||
displayCount: displayCount ?? this.displayCount,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user