2022-12-14 17:33:38 +00:00
|
|
|
abstract class MeteringCommunicationEvent {
|
|
|
|
const MeteringCommunicationEvent();
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract class SourceEvent extends MeteringCommunicationEvent {
|
|
|
|
const SourceEvent();
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract class ScreenEvent extends MeteringCommunicationEvent {
|
|
|
|
const ScreenEvent();
|
|
|
|
}
|
|
|
|
|
|
|
|
class MeasureEvent extends ScreenEvent {
|
|
|
|
const MeasureEvent();
|
|
|
|
}
|
|
|
|
|
2023-02-19 10:26:14 +00:00
|
|
|
abstract class MeasuredEvent extends SourceEvent {
|
2023-05-16 09:47:53 +00:00
|
|
|
final double? ev100;
|
2022-12-14 17:33:38 +00:00
|
|
|
|
|
|
|
const MeasuredEvent(this.ev100);
|
|
|
|
}
|
2023-02-19 10:26:14 +00:00
|
|
|
|
|
|
|
class MeteringInProgressEvent extends MeasuredEvent {
|
|
|
|
const MeteringInProgressEvent(super.ev100);
|
2023-06-20 06:43:49 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
if (identical(this, other)) return true;
|
|
|
|
if (other.runtimeType != runtimeType) return false;
|
|
|
|
return other is MeteringInProgressEvent && other.ev100 == ev100;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
int get hashCode => Object.hash(ev100, runtimeType);
|
2023-02-19 10:26:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class MeteringEndedEvent extends MeasuredEvent {
|
|
|
|
const MeteringEndedEvent(super.ev100);
|
2023-06-20 06:43:49 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
if (identical(this, other)) return true;
|
|
|
|
if (other.runtimeType != runtimeType) return false;
|
|
|
|
return other is MeteringEndedEvent && other.ev100 == ev100;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
int get hashCode => Object.hash(ev100, runtimeType);
|
2023-02-19 10:26:14 +00:00
|
|
|
}
|
2023-07-09 11:39:33 +00:00
|
|
|
|
2024-05-03 10:28:10 +00:00
|
|
|
class ScreenOnTopOpenedEvent extends ScreenEvent {
|
|
|
|
const ScreenOnTopOpenedEvent();
|
2023-07-09 11:39:33 +00:00
|
|
|
}
|
|
|
|
|
2024-05-03 10:28:10 +00:00
|
|
|
class ScreenOnTopClosedEvent extends ScreenEvent {
|
|
|
|
const ScreenOnTopClosedEvent();
|
2023-07-09 11:39:33 +00:00
|
|
|
}
|