m3_lightmeter/lib/screens/metering/state_metering.dart
Vadim 9b0b387514 Added camera package to project
added camera plugin to project

more reverse naming

added communication bloc

layout fix
2022-12-15 11:33:00 +03:00

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