2023-03-30 19:24:18 +00:00
|
|
|
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
2022-12-04 19:00:43 +00:00
|
|
|
|
2023-06-20 06:43:49 +00:00
|
|
|
sealed class MeteringEvent {
|
2022-10-29 18:02:45 +00:00
|
|
|
const MeteringEvent();
|
|
|
|
}
|
|
|
|
|
2023-03-30 19:24:18 +00:00
|
|
|
class EquipmentProfileChangedEvent extends MeteringEvent {
|
2023-07-24 07:08:37 +00:00
|
|
|
final EquipmentProfile equipmentProfileData;
|
2023-03-30 19:24:18 +00:00
|
|
|
|
|
|
|
const EquipmentProfileChangedEvent(this.equipmentProfileData);
|
|
|
|
}
|
|
|
|
|
2022-12-04 19:00:43 +00:00
|
|
|
class IsoChangedEvent extends MeteringEvent {
|
|
|
|
final IsoValue isoValue;
|
|
|
|
|
|
|
|
const IsoChangedEvent(this.isoValue);
|
|
|
|
}
|
|
|
|
|
2022-12-04 19:12:52 +00:00
|
|
|
class NdChangedEvent extends MeteringEvent {
|
|
|
|
final NdValue ndValue;
|
|
|
|
|
|
|
|
const NdChangedEvent(this.ndValue);
|
|
|
|
}
|
|
|
|
|
2022-10-29 18:02:45 +00:00
|
|
|
class MeasureEvent extends MeteringEvent {
|
|
|
|
const MeasureEvent();
|
|
|
|
}
|
2022-12-14 17:33:38 +00:00
|
|
|
|
|
|
|
class MeasuredEvent extends MeteringEvent {
|
|
|
|
final double ev100;
|
2023-06-20 06:43:49 +00:00
|
|
|
final bool isMetering;
|
2022-12-14 17:33:38 +00:00
|
|
|
|
2023-06-20 06:43:49 +00:00
|
|
|
const MeasuredEvent(this.ev100, {required this.isMetering});
|
2022-12-14 17:33:38 +00:00
|
|
|
}
|
2023-05-16 09:47:53 +00:00
|
|
|
|
|
|
|
class MeasureErrorEvent extends MeteringEvent {
|
2023-06-20 06:43:49 +00:00
|
|
|
final bool isMetering;
|
|
|
|
|
|
|
|
const MeasureErrorEvent({required this.isMetering});
|
2023-05-16 09:47:53 +00:00
|
|
|
}
|
2023-07-09 11:39:33 +00:00
|
|
|
|
2024-05-07 17:24:51 +00:00
|
|
|
class ScreenOnTopOpenedEvent extends MeteringEvent {
|
|
|
|
const ScreenOnTopOpenedEvent();
|
2023-07-09 11:39:33 +00:00
|
|
|
}
|
|
|
|
|
2024-05-07 17:24:51 +00:00
|
|
|
class ScreenOnTopClosedEvent extends MeteringEvent {
|
|
|
|
const ScreenOnTopClosedEvent();
|
2023-07-09 11:39:33 +00:00
|
|
|
}
|