21 lines
359 B
Dart
21 lines
359 B
Dart
// timer_event.dart
|
|
import 'package:equatable/equatable.dart';
|
|
|
|
abstract class TimerEvent extends Equatable {
|
|
const TimerEvent();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
class StartTimer extends TimerEvent {}
|
|
|
|
class Tick extends TimerEvent {
|
|
final int duration;
|
|
|
|
const Tick(this.duration);
|
|
|
|
@override
|
|
List<Object> get props => [duration];
|
|
}
|