rounding shits

This commit is contained in:
Kima
2024-02-02 20:46:57 +01:00
parent a435f56f2e
commit 773a8f61e9
10 changed files with 161 additions and 49 deletions

View File

@@ -5,14 +5,18 @@ class GradeSubject {
Category category;
String name;
String? renamedTo;
double? customRounding;
bool get isRenamed => renamedTo != null;
bool get hasCustomRounding => customRounding != null;
GradeSubject({
required this.id,
required this.category,
required this.name,
this.renamedTo,
// v5
this.customRounding,
});
factory GradeSubject.fromJson(Map json) {