m3_lightmeter/lib/screens/timer/event_timer.dart
2024-04-30 21:50:09 +02:00

21 lines
383 B
Dart

sealed class TimerEvent {
const TimerEvent();
}
class StartTimerEvent extends TimerEvent {
const StartTimerEvent();
}
class StopTimerEvent extends TimerEvent {
const StopTimerEvent();
}
class SetTimeLeftEvent extends TimerEvent {
final Duration timeLeft;
const SetTimeLeftEvent(this.timeLeft);
}
class ResetTimerEvent extends TimerEvent {
const ResetTimerEvent();
}