added guardian login with views for their assigned childs
This commit is contained in:
@@ -40,9 +40,12 @@ abstract class TimetableState with _$TimetableState {
|
||||
Iterable<McTimetableEntry> getAllKnownLessons() =>
|
||||
weekCache.values.expand((response) => response.entries);
|
||||
|
||||
bool get hasReferenceData =>
|
||||
/// Whether the calendar has everything it needs to render. Custom events
|
||||
/// only exist for subjects that support them; requiring them elsewhere would
|
||||
/// keep foreign plans loading forever.
|
||||
bool isReady({required bool needsCustomEvents}) =>
|
||||
rooms != null &&
|
||||
subjects != null &&
|
||||
schoolHolidays != null &&
|
||||
customEvents != null;
|
||||
(!needsCustomEvents || customEvents != null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user