m3_lightmeter/lib/screens/metering/state_metering.dart
Vadim 14bac950cf Fixed _models_ and _screens_ folders structure
proper folders for models

unified _screen_ folder filenames
2022-12-18 14:39:02 +03:00

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;
}