simplified code across the app and consolidated duplicated helpers
This commit is contained in:
@@ -98,9 +98,9 @@ abstract class TimetableState with _$TimetableState {
|
||||
);
|
||||
}
|
||||
|
||||
bool get hasReferenceData =>
|
||||
rooms != null &&
|
||||
subjects != null &&
|
||||
schoolHolidays != null &&
|
||||
customEvents != null;
|
||||
/// Everything a foreign plan needs to render; it never has custom events.
|
||||
bool get hasSchoolReferenceData =>
|
||||
rooms != null && subjects != null && schoolHolidays != null;
|
||||
|
||||
bool get hasReferenceData => hasSchoolReferenceData && customEvents != null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user