forked from eatvio/eatvio_app
32 lines
730 B
Dart
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,
|
|
);
|
|
}
|
|
}
|