Files
eatvio_app/lib/presentation/weight_screen/bloc/weight_state.dart
2023-12-18 14:47:54 +03:00

32 lines
730 B
Dart

// ignore_for_file: must_be_immutable
part of 'weight_bloc.dart';
/// Represents the state of Weight in the application.
class WeightState extends Equatable {
WeightState({
this.selectedDropDownValue,
this.weightModelObj,
});
SelectionPopupModel? selectedDropDownValue;
WeightModel? weightModelObj;
@override
List<Object?> get props => [
selectedDropDownValue,
weightModelObj,
];
WeightState copyWith({
SelectionPopupModel? selectedDropDownValue,
WeightModel? weightModelObj,
}) {
return WeightState(
selectedDropDownValue:
selectedDropDownValue ?? this.selectedDropDownValue,
weightModelObj: weightModelObj ?? this.weightModelObj,
);
}
}