DailyGoalCubit constructor

DailyGoalCubit({
  1. SharedPreferencesAsync? prefs,
  2. required AppClock clock,
})

Implementation

DailyGoalCubit({SharedPreferencesAsync? prefs, required this.clock})
  : _prefs = prefs ?? SharedPreferencesAsync(),
    super(const DailyGoalState()) {
  _loaded = _load();
}