2023-03-30 19:24:18 +00:00
|
|
|
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
2022-10-29 18:02:45 +00:00
|
|
|
|
|
|
|
class ExposurePair {
|
|
|
|
final ApertureValue aperture;
|
|
|
|
final ShutterSpeedValue shutterSpeed;
|
|
|
|
|
|
|
|
const ExposurePair(this.aperture, this.shutterSpeed);
|
2023-01-20 19:31:35 +00:00
|
|
|
|
|
|
|
@override
|
2023-05-11 13:30:18 +00:00
|
|
|
String toString() => '$aperture - $shutterSpeed';
|
2023-07-17 16:06:10 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
if (identical(this, other)) return true;
|
|
|
|
if (other.runtimeType != runtimeType) return false;
|
|
|
|
return other is ExposurePair &&
|
|
|
|
other.aperture == aperture &&
|
|
|
|
other.shutterSpeed == shutterSpeed;
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
int get hashCode => Object.hash(aperture, shutterSpeed, runtimeType);
|
2022-10-29 18:02:45 +00:00
|
|
|
}
|