m3_lightmeter/lib/screens/film_edit/state_film_edit.dart
2024-10-31 16:59:45 +01:00

32 lines
765 B
Dart

import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
class FilmEditState {
final String name;
final IsoValue isoValue;
final double? exponent;
final bool canSave;
final bool isLoading;
const FilmEditState({
required this.name,
required this.isoValue,
required this.exponent,
required this.canSave,
this.isLoading = false,
});
FilmEditState copyWith({
String? name,
IsoValue? isoValue,
double? exponent,
bool? canSave,
bool? isLoading,
}) =>
FilmEditState(
name: name ?? this.name,
isoValue: isoValue ?? this.isoValue,
exponent: exponent ?? this.exponent,
canSave: canSave ?? this.canSave,
isLoading: isLoading ?? this.isLoading,
);
}