2024-04-30 19:50:09 +00:00
|
|
|
sealed class TimerEvent {
|
|
|
|
const TimerEvent();
|
2024-04-30 14:32:01 +00:00
|
|
|
}
|
|
|
|
|
2024-04-30 19:50:09 +00:00
|
|
|
class StartTimerEvent extends TimerEvent {
|
|
|
|
const StartTimerEvent();
|
2024-04-30 14:32:01 +00:00
|
|
|
}
|
|
|
|
|
2024-04-30 19:50:09 +00:00
|
|
|
class StopTimerEvent extends TimerEvent {
|
|
|
|
const StopTimerEvent();
|
2024-04-30 14:32:01 +00:00
|
|
|
}
|
|
|
|
|
2024-04-30 19:50:09 +00:00
|
|
|
class SetTimeLeftEvent extends TimerEvent {
|
|
|
|
final Duration timeLeft;
|
2024-04-30 14:32:01 +00:00
|
|
|
|
2024-04-30 19:50:09 +00:00
|
|
|
const SetTimeLeftEvent(this.timeLeft);
|
2024-04-30 14:32:01 +00:00
|
|
|
}
|
|
|
|
|
2024-04-30 19:50:09 +00:00
|
|
|
class ResetTimerEvent extends TimerEvent {
|
|
|
|
const ResetTimerEvent();
|
2024-04-30 14:32:01 +00:00
|
|
|
}
|