mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 15:30:59 +00:00
9b0b387514
added camera plugin to project more reverse naming added communication bloc layout fix
22 lines
646 B
Dart
22 lines
646 B
Dart
import 'package:lightmeter/models/exposure_pair.dart';
|
|
import 'package:lightmeter/models/iso_value.dart';
|
|
import 'package:lightmeter/models/nd_value.dart';
|
|
|
|
class MeteringState {
|
|
final double ev;
|
|
final double evCompensation;
|
|
final IsoValue iso;
|
|
final NdValue nd;
|
|
final List<ExposurePair> exposurePairs;
|
|
|
|
const MeteringState({
|
|
required this.ev,
|
|
required this.evCompensation,
|
|
required this.iso,
|
|
required this.nd,
|
|
required this.exposurePairs,
|
|
});
|
|
|
|
ExposurePair? get fastest => exposurePairs.isEmpty ? null : exposurePairs.first;
|
|
ExposurePair? get slowest => exposurePairs.isEmpty ? null : exposurePairs.last;
|
|
}
|