forked from eatvio/eatvio_app
31 lines
689 B
Dart
31 lines
689 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.weightController,
|
|
this.weightModelObj,
|
|
});
|
|
|
|
TextEditingController? weightController;
|
|
|
|
WeightModel? weightModelObj;
|
|
|
|
@override
|
|
List<Object?> get props => [
|
|
weightController,
|
|
weightModelObj,
|
|
];
|
|
WeightState copyWith({
|
|
TextEditingController? weightController,
|
|
WeightModel? weightModelObj,
|
|
}) {
|
|
return WeightState(
|
|
weightController: weightController ?? this.weightController,
|
|
weightModelObj: weightModelObj ?? this.weightModelObj,
|
|
);
|
|
}
|
|
}
|