part of 'calculator_bloc.dart';

class CalculatorState extends Equatable {
  const CalculatorState({
    required this.isLoading,
    this.weight,
    this.size,
    this.selectedWarehouse,
  });

  final bool isLoading;
  final double? weight;
  final double? size;
  final String? selectedWarehouse;

  CalculatorState copyWith({
    bool? isLoading,
    double? weight,
    double? size,
    String? selectedWarehouse,
  }) {
    return CalculatorState(
      isLoading: isLoading ?? this.isLoading,
      weight: weight ?? this.weight,
      size: size ?? this.size,
      selectedWarehouse: selectedWarehouse ?? this.selectedWarehouse,
    );
  }

  @override
  List<Object?> get props => [isLoading, weight, size, selectedWarehouse];
}
