ExerciseTimeCubit constructor

ExerciseTimeCubit({
  1. SharedPreferencesAsync? prefs,
  2. required AppClock clock,
  3. Random? random,
})

Implementation

ExerciseTimeCubit({
  SharedPreferencesAsync? prefs,
  required this.clock,
  Random? random,
}) : _prefs = prefs ?? SharedPreferencesAsync(),
     _random = random ?? Random(),
     super(const ExerciseTimeState()) {
  _loaded = _load();
}