part of 'wages_form_bloc.dart';

@immutable
class WagesFormState {
  const WagesFormState({
    this.status = StateStatus.loading,
    this.signImageData,
    this.actualForms = const [],
    this.activeForm,
    this.formErrors = const {},
  });

  final StateStatus status;
  final Uint8List? signImageData;
  final List<WageFormEntity> actualForms;
  final WageFormEntity? activeForm;
  final Map<String, String> formErrors;

  WagesFormState copyWith({
    StateStatus? status,
    Uint8List? signImageData,
    List<WageFormEntity>? actualForms,
    WageFormEntity? activeForm,
    Map<String, String>? formErrors
  }) {
    return WagesFormState(
      status: status ?? this.status,
      signImageData: signImageData ?? this.signImageData,
      actualForms: actualForms ?? this.actualForms,
      activeForm: activeForm ?? this.activeForm,
      formErrors: formErrors ?? this.formErrors,
    );
  }
}
