mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 16:30:40 +00:00
14bac950cf
proper folders for models unified _screen_ folder filenames
22 lines
699 B
Dart
22 lines
699 B
Dart
import 'package:lightmeter/data/models/exposure_pair.dart';
|
|
import 'package:lightmeter/data/models/photography_values/iso_value.dart';
|
|
import 'package:lightmeter/data/models/photography_values/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;
|
|
}
|