mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
32 lines
765 B
Dart
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,
|
|
);
|
|
}
|