part of 'power_clamp_info_bloc.dart';

enum PowerClampInfoStatus { initial, loading, loaded, error }

final class PowerClampInfoState extends Equatable {
  const PowerClampInfoState({
    this.status = PowerClampInfoStatus.initial,
    this.powerClampModel,
    this.errorMessage,
  });

  final PowerClampInfoStatus status;
  final PowerClampModel? powerClampModel;
  final String? errorMessage;

  PowerClampInfoState copyWith({
    PowerClampInfoStatus? status,
    PowerClampModel? powerClampModel,
    String? errorMessage,
  }) {
    return PowerClampInfoState(
      status: status ?? this.status,
      powerClampModel: powerClampModel ?? this.powerClampModel,
      errorMessage: errorMessage ?? this.errorMessage,
    );
  }

  @override
  List<Object?> get props => [status, powerClampModel, errorMessage];
}
