part of 'verify_otp_bloc.dart';

enum VerifyOtpStatus { initial, loading, success, failure }

class VerifyOtpState extends Equatable {
  final VerifyOtpStatus status;
  final String? errorMessage;
  final String otp;

  const VerifyOtpState({
    this.status = VerifyOtpStatus.initial,
    this.errorMessage,
    this.otp = '',
  });

  VerifyOtpState copyWith({
    VerifyOtpStatus? status,
    String? errorMessage,
    String? otp,
  }) {
    return VerifyOtpState(
      status: status ?? this.status,
      errorMessage: errorMessage ?? this.errorMessage,
      otp: otp ?? this.otp,
    );
  }

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