aves_mio/lib/model/metadata/overlay.dart
Fabio Micheluz 2c988f959b
Some checks are pending
Quality check / Flutter analysis (push) Waiting to run
Quality check / CodeQL analysis (java-kotlin) (push) Waiting to run
first commit
2026-02-19 13:25:23 +01:00

32 lines
899 B
Dart

import 'package:equatable/equatable.dart';
import 'package:flutter/foundation.dart';
@immutable
class OverlayMetadata extends Equatable {
final double? aperture, focalLength;
final String? description, exposureTime;
final int? iso;
@override
List<Object?> get props => [aperture, description, exposureTime, focalLength, iso];
bool get hasShootingDetails => aperture != null || exposureTime != null || focalLength != null || iso != null;
const OverlayMetadata({
this.aperture,
this.description,
this.exposureTime,
this.focalLength,
this.iso,
});
factory OverlayMetadata.fromMap(Map map) {
return OverlayMetadata(
aperture: map['aperture'] as double?,
description: map['description'] as String?,
exposureTime: map['exposureTime'] as String?,
focalLength: map['focalLength'] as double?,
iso: map['iso'] as int?,
);
}
}