TimerCubit constructor
TimerCubit({
- TimerStorageManager? storageManager,
Creates a TimerCubit.
You can provide a custom storageManager (useful for testing or custom DBs).
Defaults to a standard TimerStorageManager if none is provided.
Implementation
TimerCubit({TimerStorageManager? storageManager})
: storageManager = storageManager ?? TimerStorageManager(),
super(TimerState(secondsRemaining: 0));