make variable private

This commit is contained in:
hihihaha 2023-06-19 22:34:53 +02:00
parent 0ad663beb3
commit c615a33bd2

View File

@ -40,7 +40,7 @@ class LiveCardProvider extends ChangeNotifier {
String? _latestActivityId; String? _latestActivityId;
Map<String, String> _lastActivity = {}; Map<String, String> _lastActivity = {};
bool hasCheckedTimetable = false; bool _hasCheckedTimetable = false;
LiveCardProvider({ LiveCardProvider({
required TimetableProvider timetable, required TimetableProvider timetable,
@ -200,8 +200,8 @@ class LiveCardProvider extends ChangeNotifier {
List<Lesson> today = _today(_timetable); List<Lesson> today = _today(_timetable);
if (today.isEmpty && !hasCheckedTimetable) { if (today.isEmpty && !_hasCheckedTimetable) {
hasCheckedTimetable = true; _hasCheckedTimetable = true;
await _timetable.fetch(week: Week.current()); await _timetable.fetch(week: Week.current());
today = _today(_timetable); today = _today(_timetable);
} }