mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 15:30:59 +00:00
20 lines
539 B
Dart
20 lines
539 B
Dart
import 'package:lightmeter/models/exposure_pair.dart';
|
|
|
|
class MeteringState {
|
|
final double ev;
|
|
final double evCompensation;
|
|
final int iso;
|
|
final double 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;
|
|
}
|