m3_lightmeter/lib/screens/film_edit/state_film_edit.dart

33 lines
765 B
Dart
Raw Permalink Normal View History

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,
);
}