// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark

part of 'profile_bloc.dart';

// **************************************************************************
// FreezedGenerator
// **************************************************************************

T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
    'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

/// @nodoc
mixin _$ProfileEvent {
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $ProfileEventCopyWith<$Res> {
  factory $ProfileEventCopyWith(
          ProfileEvent value, $Res Function(ProfileEvent) then) =
      _$ProfileEventCopyWithImpl<$Res, ProfileEvent>;
}

/// @nodoc
class _$ProfileEventCopyWithImpl<$Res, $Val extends ProfileEvent>
    implements $ProfileEventCopyWith<$Res> {
  _$ProfileEventCopyWithImpl(this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;
}

/// @nodoc
abstract class _$$UpdateImagePathImplCopyWith<$Res> {
  factory _$$UpdateImagePathImplCopyWith(_$UpdateImagePathImpl value,
          $Res Function(_$UpdateImagePathImpl) then) =
      __$$UpdateImagePathImplCopyWithImpl<$Res>;
  @useResult
  $Res call({String? imagePath});
}

/// @nodoc
class __$$UpdateImagePathImplCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$UpdateImagePathImpl>
    implements _$$UpdateImagePathImplCopyWith<$Res> {
  __$$UpdateImagePathImplCopyWithImpl(
      _$UpdateImagePathImpl _value, $Res Function(_$UpdateImagePathImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? imagePath = freezed,
  }) {
    return _then(_$UpdateImagePathImpl(
      imagePath: freezed == imagePath
          ? _value.imagePath
          : imagePath // ignore: cast_nullable_to_non_nullable
              as String?,
    ));
  }
}

/// @nodoc

class _$UpdateImagePathImpl implements UpdateImagePath {
  const _$UpdateImagePathImpl({required this.imagePath});

  @override
  final String? imagePath;

  @override
  String toString() {
    return 'ProfileEvent.updateImagePath(imagePath: $imagePath)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$UpdateImagePathImpl &&
            (identical(other.imagePath, imagePath) ||
                other.imagePath == imagePath));
  }

  @override
  int get hashCode => Object.hash(runtimeType, imagePath);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$UpdateImagePathImplCopyWith<_$UpdateImagePathImpl> get copyWith =>
      __$$UpdateImagePathImplCopyWithImpl<_$UpdateImagePathImpl>(
          this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) {
    return updateImagePath(imagePath);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) {
    return updateImagePath?.call(imagePath);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) {
    if (updateImagePath != null) {
      return updateImagePath(imagePath);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) {
    return updateImagePath(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) {
    return updateImagePath?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) {
    if (updateImagePath != null) {
      return updateImagePath(this);
    }
    return orElse();
  }
}

abstract class UpdateImagePath implements ProfileEvent {
  const factory UpdateImagePath({required final String? imagePath}) =
      _$UpdateImagePathImpl;

  String? get imagePath;
  @JsonKey(ignore: true)
  _$$UpdateImagePathImplCopyWith<_$UpdateImagePathImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$UpdateUserImplCopyWith<$Res> {
  factory _$$UpdateUserImplCopyWith(
          _$UpdateUserImpl value, $Res Function(_$UpdateUserImpl) then) =
      __$$UpdateUserImplCopyWithImpl<$Res>;
  @useResult
  $Res call(
      {String firstName,
      String lastName,
      String phone,
      String email,
      BuildContext context,
      VoidCallback? onSuccess});
}

/// @nodoc
class __$$UpdateUserImplCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$UpdateUserImpl>
    implements _$$UpdateUserImplCopyWith<$Res> {
  __$$UpdateUserImplCopyWithImpl(
      _$UpdateUserImpl _value, $Res Function(_$UpdateUserImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? firstName = null,
    Object? lastName = null,
    Object? phone = null,
    Object? email = null,
    Object? context = null,
    Object? onSuccess = freezed,
  }) {
    return _then(_$UpdateUserImpl(
      firstName: null == firstName
          ? _value.firstName
          : firstName // ignore: cast_nullable_to_non_nullable
              as String,
      lastName: null == lastName
          ? _value.lastName
          : lastName // ignore: cast_nullable_to_non_nullable
              as String,
      phone: null == phone
          ? _value.phone
          : phone // ignore: cast_nullable_to_non_nullable
              as String,
      email: null == email
          ? _value.email
          : email // ignore: cast_nullable_to_non_nullable
              as String,
      context: null == context
          ? _value.context
          : context // ignore: cast_nullable_to_non_nullable
              as BuildContext,
      onSuccess: freezed == onSuccess
          ? _value.onSuccess
          : onSuccess // ignore: cast_nullable_to_non_nullable
              as VoidCallback?,
    ));
  }
}

/// @nodoc

class _$UpdateUserImpl implements UpdateUser {
  const _$UpdateUserImpl(
      {required this.firstName,
      required this.lastName,
      required this.phone,
      required this.email,
      required this.context,
      this.onSuccess});

  @override
  final String firstName;
  @override
  final String lastName;
  @override
  final String phone;
  @override
  final String email;
  @override
  final BuildContext context;
  @override
  final VoidCallback? onSuccess;

  @override
  String toString() {
    return 'ProfileEvent.updateUser(firstName: $firstName, lastName: $lastName, phone: $phone, email: $email, context: $context, onSuccess: $onSuccess)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$UpdateUserImpl &&
            (identical(other.firstName, firstName) ||
                other.firstName == firstName) &&
            (identical(other.lastName, lastName) ||
                other.lastName == lastName) &&
            (identical(other.phone, phone) || other.phone == phone) &&
            (identical(other.email, email) || other.email == email) &&
            (identical(other.context, context) || other.context == context) &&
            (identical(other.onSuccess, onSuccess) ||
                other.onSuccess == onSuccess));
  }

  @override
  int get hashCode => Object.hash(
      runtimeType, firstName, lastName, phone, email, context, onSuccess);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$UpdateUserImplCopyWith<_$UpdateUserImpl> get copyWith =>
      __$$UpdateUserImplCopyWithImpl<_$UpdateUserImpl>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) {
    return updateUser(firstName, lastName, phone, email, context, onSuccess);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) {
    return updateUser?.call(
        firstName, lastName, phone, email, context, onSuccess);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) {
    if (updateUser != null) {
      return updateUser(firstName, lastName, phone, email, context, onSuccess);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) {
    return updateUser(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) {
    return updateUser?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) {
    if (updateUser != null) {
      return updateUser(this);
    }
    return orElse();
  }
}

abstract class UpdateUser implements ProfileEvent {
  const factory UpdateUser(
      {required final String firstName,
      required final String lastName,
      required final String phone,
      required final String email,
      required final BuildContext context,
      final VoidCallback? onSuccess}) = _$UpdateUserImpl;

  String get firstName;
  String get lastName;
  String get phone;
  String get email;
  BuildContext get context;
  VoidCallback? get onSuccess;
  @JsonKey(ignore: true)
  _$$UpdateUserImplCopyWith<_$UpdateUserImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$UpdatePasswordImplCopyWith<$Res> {
  factory _$$UpdatePasswordImplCopyWith(_$UpdatePasswordImpl value,
          $Res Function(_$UpdatePasswordImpl) then) =
      __$$UpdatePasswordImplCopyWithImpl<$Res>;
  @useResult
  $Res call(
      {String newPassword,
      String confirmPassword,
      BuildContext context,
      VoidCallback? onSuccess});
}

/// @nodoc
class __$$UpdatePasswordImplCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$UpdatePasswordImpl>
    implements _$$UpdatePasswordImplCopyWith<$Res> {
  __$$UpdatePasswordImplCopyWithImpl(
      _$UpdatePasswordImpl _value, $Res Function(_$UpdatePasswordImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? newPassword = null,
    Object? confirmPassword = null,
    Object? context = null,
    Object? onSuccess = freezed,
  }) {
    return _then(_$UpdatePasswordImpl(
      newPassword: null == newPassword
          ? _value.newPassword
          : newPassword // ignore: cast_nullable_to_non_nullable
              as String,
      confirmPassword: null == confirmPassword
          ? _value.confirmPassword
          : confirmPassword // ignore: cast_nullable_to_non_nullable
              as String,
      context: null == context
          ? _value.context
          : context // ignore: cast_nullable_to_non_nullable
              as BuildContext,
      onSuccess: freezed == onSuccess
          ? _value.onSuccess
          : onSuccess // ignore: cast_nullable_to_non_nullable
              as VoidCallback?,
    ));
  }
}

/// @nodoc

class _$UpdatePasswordImpl implements UpdatePassword {
  const _$UpdatePasswordImpl(
      {required this.newPassword,
      required this.confirmPassword,
      required this.context,
      this.onSuccess});

  @override
  final String newPassword;
  @override
  final String confirmPassword;
  @override
  final BuildContext context;
  @override
  final VoidCallback? onSuccess;

  @override
  String toString() {
    return 'ProfileEvent.updatePassword(newPassword: $newPassword, confirmPassword: $confirmPassword, context: $context, onSuccess: $onSuccess)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$UpdatePasswordImpl &&
            (identical(other.newPassword, newPassword) ||
                other.newPassword == newPassword) &&
            (identical(other.confirmPassword, confirmPassword) ||
                other.confirmPassword == confirmPassword) &&
            (identical(other.context, context) || other.context == context) &&
            (identical(other.onSuccess, onSuccess) ||
                other.onSuccess == onSuccess));
  }

  @override
  int get hashCode => Object.hash(
      runtimeType, newPassword, confirmPassword, context, onSuccess);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$UpdatePasswordImplCopyWith<_$UpdatePasswordImpl> get copyWith =>
      __$$UpdatePasswordImplCopyWithImpl<_$UpdatePasswordImpl>(
          this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) {
    return updatePassword(newPassword, confirmPassword, context, onSuccess);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) {
    return updatePassword?.call(
        newPassword, confirmPassword, context, onSuccess);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) {
    if (updatePassword != null) {
      return updatePassword(newPassword, confirmPassword, context, onSuccess);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) {
    return updatePassword(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) {
    return updatePassword?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) {
    if (updatePassword != null) {
      return updatePassword(this);
    }
    return orElse();
  }
}

abstract class UpdatePassword implements ProfileEvent {
  const factory UpdatePassword(
      {required final String newPassword,
      required final String confirmPassword,
      required final BuildContext context,
      final VoidCallback? onSuccess}) = _$UpdatePasswordImpl;

  String get newPassword;
  String get confirmPassword;
  BuildContext get context;
  VoidCallback? get onSuccess;
  @JsonKey(ignore: true)
  _$$UpdatePasswordImplCopyWith<_$UpdatePasswordImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$ShowPasswordImplCopyWith<$Res> {
  factory _$$ShowPasswordImplCopyWith(
          _$ShowPasswordImpl value, $Res Function(_$ShowPasswordImpl) then) =
      __$$ShowPasswordImplCopyWithImpl<$Res>;
}

/// @nodoc
class __$$ShowPasswordImplCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$ShowPasswordImpl>
    implements _$$ShowPasswordImplCopyWith<$Res> {
  __$$ShowPasswordImplCopyWithImpl(
      _$ShowPasswordImpl _value, $Res Function(_$ShowPasswordImpl) _then)
      : super(_value, _then);
}

/// @nodoc

class _$ShowPasswordImpl implements ShowPassword {
  const _$ShowPasswordImpl();

  @override
  String toString() {
    return 'ProfileEvent.showPassword()';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType && other is _$ShowPasswordImpl);
  }

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) {
    return showPassword();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) {
    return showPassword?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) {
    if (showPassword != null) {
      return showPassword();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) {
    return showPassword(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) {
    return showPassword?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) {
    if (showPassword != null) {
      return showPassword(this);
    }
    return orElse();
  }
}

abstract class ShowPassword implements ProfileEvent {
  const factory ShowPassword() = _$ShowPasswordImpl;
}

/// @nodoc
abstract class _$$ShowConfirmPasswordImplCopyWith<$Res> {
  factory _$$ShowConfirmPasswordImplCopyWith(_$ShowConfirmPasswordImpl value,
          $Res Function(_$ShowConfirmPasswordImpl) then) =
      __$$ShowConfirmPasswordImplCopyWithImpl<$Res>;
}

/// @nodoc
class __$$ShowConfirmPasswordImplCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$ShowConfirmPasswordImpl>
    implements _$$ShowConfirmPasswordImplCopyWith<$Res> {
  __$$ShowConfirmPasswordImplCopyWithImpl(_$ShowConfirmPasswordImpl _value,
      $Res Function(_$ShowConfirmPasswordImpl) _then)
      : super(_value, _then);
}

/// @nodoc

class _$ShowConfirmPasswordImpl implements ShowConfirmPassword {
  const _$ShowConfirmPasswordImpl();

  @override
  String toString() {
    return 'ProfileEvent.showConfirmPassword()';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$ShowConfirmPasswordImpl);
  }

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) {
    return showConfirmPassword();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) {
    return showConfirmPassword?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) {
    if (showConfirmPassword != null) {
      return showConfirmPassword();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) {
    return showConfirmPassword(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) {
    return showConfirmPassword?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) {
    if (showConfirmPassword != null) {
      return showConfirmPassword(this);
    }
    return orElse();
  }
}

abstract class ShowConfirmPassword implements ProfileEvent {
  const factory ShowConfirmPassword() = _$ShowConfirmPasswordImpl;
}

/// @nodoc
abstract class _$$GetLanguageImplCopyWith<$Res> {
  factory _$$GetLanguageImplCopyWith(
          _$GetLanguageImpl value, $Res Function(_$GetLanguageImpl) then) =
      __$$GetLanguageImplCopyWithImpl<$Res>;
  @useResult
  $Res call({BuildContext context});
}

/// @nodoc
class __$$GetLanguageImplCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$GetLanguageImpl>
    implements _$$GetLanguageImplCopyWith<$Res> {
  __$$GetLanguageImplCopyWithImpl(
      _$GetLanguageImpl _value, $Res Function(_$GetLanguageImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? context = null,
  }) {
    return _then(_$GetLanguageImpl(
      context: null == context
          ? _value.context
          : context // ignore: cast_nullable_to_non_nullable
              as BuildContext,
    ));
  }
}

/// @nodoc

class _$GetLanguageImpl implements GetLanguage {
  const _$GetLanguageImpl({required this.context});

  @override
  final BuildContext context;

  @override
  String toString() {
    return 'ProfileEvent.getLanguage(context: $context)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$GetLanguageImpl &&
            (identical(other.context, context) || other.context == context));
  }

  @override
  int get hashCode => Object.hash(runtimeType, context);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$GetLanguageImplCopyWith<_$GetLanguageImpl> get copyWith =>
      __$$GetLanguageImplCopyWithImpl<_$GetLanguageImpl>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) {
    return getLanguage(context);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) {
    return getLanguage?.call(context);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) {
    if (getLanguage != null) {
      return getLanguage(context);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) {
    return getLanguage(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) {
    return getLanguage?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) {
    if (getLanguage != null) {
      return getLanguage(this);
    }
    return orElse();
  }
}

abstract class GetLanguage implements ProfileEvent {
  const factory GetLanguage({required final BuildContext context}) =
      _$GetLanguageImpl;

  BuildContext get context;
  @JsonKey(ignore: true)
  _$$GetLanguageImplCopyWith<_$GetLanguageImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$GetCurrencyImplCopyWith<$Res> {
  factory _$$GetCurrencyImplCopyWith(
          _$GetCurrencyImpl value, $Res Function(_$GetCurrencyImpl) then) =
      __$$GetCurrencyImplCopyWithImpl<$Res>;
  @useResult
  $Res call({BuildContext context});
}

/// @nodoc
class __$$GetCurrencyImplCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$GetCurrencyImpl>
    implements _$$GetCurrencyImplCopyWith<$Res> {
  __$$GetCurrencyImplCopyWithImpl(
      _$GetCurrencyImpl _value, $Res Function(_$GetCurrencyImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? context = null,
  }) {
    return _then(_$GetCurrencyImpl(
      context: null == context
          ? _value.context
          : context // ignore: cast_nullable_to_non_nullable
              as BuildContext,
    ));
  }
}

/// @nodoc

class _$GetCurrencyImpl implements GetCurrency {
  const _$GetCurrencyImpl({required this.context});

  @override
  final BuildContext context;

  @override
  String toString() {
    return 'ProfileEvent.getCurrency(context: $context)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$GetCurrencyImpl &&
            (identical(other.context, context) || other.context == context));
  }

  @override
  int get hashCode => Object.hash(runtimeType, context);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$GetCurrencyImplCopyWith<_$GetCurrencyImpl> get copyWith =>
      __$$GetCurrencyImplCopyWithImpl<_$GetCurrencyImpl>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) {
    return getCurrency(context);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) {
    return getCurrency?.call(context);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) {
    if (getCurrency != null) {
      return getCurrency(context);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) {
    return getCurrency(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) {
    return getCurrency?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) {
    if (getCurrency != null) {
      return getCurrency(this);
    }
    return orElse();
  }
}

abstract class GetCurrency implements ProfileEvent {
  const factory GetCurrency({required final BuildContext context}) =
      _$GetCurrencyImpl;

  BuildContext get context;
  @JsonKey(ignore: true)
  _$$GetCurrencyImplCopyWith<_$GetCurrencyImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$GetHelpsImplCopyWith<$Res> {
  factory _$$GetHelpsImplCopyWith(
          _$GetHelpsImpl value, $Res Function(_$GetHelpsImpl) then) =
      __$$GetHelpsImplCopyWithImpl<$Res>;
  @useResult
  $Res call({BuildContext context});
}

/// @nodoc
class __$$GetHelpsImplCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$GetHelpsImpl>
    implements _$$GetHelpsImplCopyWith<$Res> {
  __$$GetHelpsImplCopyWithImpl(
      _$GetHelpsImpl _value, $Res Function(_$GetHelpsImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? context = null,
  }) {
    return _then(_$GetHelpsImpl(
      context: null == context
          ? _value.context
          : context // ignore: cast_nullable_to_non_nullable
              as BuildContext,
    ));
  }
}

/// @nodoc

class _$GetHelpsImpl implements GetHelps {
  const _$GetHelpsImpl({required this.context});

  @override
  final BuildContext context;

  @override
  String toString() {
    return 'ProfileEvent.getHelps(context: $context)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$GetHelpsImpl &&
            (identical(other.context, context) || other.context == context));
  }

  @override
  int get hashCode => Object.hash(runtimeType, context);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$GetHelpsImplCopyWith<_$GetHelpsImpl> get copyWith =>
      __$$GetHelpsImplCopyWithImpl<_$GetHelpsImpl>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) {
    return getHelps(context);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) {
    return getHelps?.call(context);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) {
    if (getHelps != null) {
      return getHelps(context);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) {
    return getHelps(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) {
    return getHelps?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) {
    if (getHelps != null) {
      return getHelps(this);
    }
    return orElse();
  }
}

abstract class GetHelps implements ProfileEvent {
  const factory GetHelps({required final BuildContext context}) =
      _$GetHelpsImpl;

  BuildContext get context;
  @JsonKey(ignore: true)
  _$$GetHelpsImplCopyWith<_$GetHelpsImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$UpdateLanImplCopyWith<$Res> {
  factory _$$UpdateLanImplCopyWith(
          _$UpdateLanImpl value, $Res Function(_$UpdateLanImpl) then) =
      __$$UpdateLanImplCopyWithImpl<$Res>;
}

/// @nodoc
class __$$UpdateLanImplCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$UpdateLanImpl>
    implements _$$UpdateLanImplCopyWith<$Res> {
  __$$UpdateLanImplCopyWithImpl(
      _$UpdateLanImpl _value, $Res Function(_$UpdateLanImpl) _then)
      : super(_value, _then);
}

/// @nodoc

class _$UpdateLanImpl implements UpdateLan {
  const _$UpdateLanImpl();

  @override
  String toString() {
    return 'ProfileEvent.updateLan()';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType && other is _$UpdateLanImpl);
  }

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) {
    return updateLan();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) {
    return updateLan?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) {
    if (updateLan != null) {
      return updateLan();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) {
    return updateLan(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) {
    return updateLan?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) {
    if (updateLan != null) {
      return updateLan(this);
    }
    return orElse();
  }
}

abstract class UpdateLan implements ProfileEvent {
  const factory UpdateLan() = _$UpdateLanImpl;
}

/// @nodoc
abstract class _$$FetchProfileImplCopyWith<$Res> {
  factory _$$FetchProfileImplCopyWith(
          _$FetchProfileImpl value, $Res Function(_$FetchProfileImpl) then) =
      __$$FetchProfileImplCopyWithImpl<$Res>;
  @useResult
  $Res call({BuildContext context});
}

/// @nodoc
class __$$FetchProfileImplCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$FetchProfileImpl>
    implements _$$FetchProfileImplCopyWith<$Res> {
  __$$FetchProfileImplCopyWithImpl(
      _$FetchProfileImpl _value, $Res Function(_$FetchProfileImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? context = null,
  }) {
    return _then(_$FetchProfileImpl(
      context: null == context
          ? _value.context
          : context // ignore: cast_nullable_to_non_nullable
              as BuildContext,
    ));
  }
}

/// @nodoc

class _$FetchProfileImpl implements FetchProfile {
  const _$FetchProfileImpl({required this.context});

  @override
  final BuildContext context;

  @override
  String toString() {
    return 'ProfileEvent.fetchProfile(context: $context)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$FetchProfileImpl &&
            (identical(other.context, context) || other.context == context));
  }

  @override
  int get hashCode => Object.hash(runtimeType, context);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$FetchProfileImplCopyWith<_$FetchProfileImpl> get copyWith =>
      __$$FetchProfileImplCopyWithImpl<_$FetchProfileImpl>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) {
    return fetchProfile(context);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) {
    return fetchProfile?.call(context);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) {
    if (fetchProfile != null) {
      return fetchProfile(context);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) {
    return fetchProfile(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) {
    return fetchProfile?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) {
    if (fetchProfile != null) {
      return fetchProfile(this);
    }
    return orElse();
  }
}

abstract class FetchProfile implements ProfileEvent {
  const factory FetchProfile({required final BuildContext context}) =
      _$FetchProfileImpl;

  BuildContext get context;
  @JsonKey(ignore: true)
  _$$FetchProfileImplCopyWith<_$FetchProfileImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$FetchReferralImplCopyWith<$Res> {
  factory _$$FetchReferralImplCopyWith(
          _$FetchReferralImpl value, $Res Function(_$FetchReferralImpl) then) =
      __$$FetchReferralImplCopyWithImpl<$Res>;
  @useResult
  $Res call({BuildContext context});
}

/// @nodoc
class __$$FetchReferralImplCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$FetchReferralImpl>
    implements _$$FetchReferralImplCopyWith<$Res> {
  __$$FetchReferralImplCopyWithImpl(
      _$FetchReferralImpl _value, $Res Function(_$FetchReferralImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? context = null,
  }) {
    return _then(_$FetchReferralImpl(
      context: null == context
          ? _value.context
          : context // ignore: cast_nullable_to_non_nullable
              as BuildContext,
    ));
  }
}

/// @nodoc

class _$FetchReferralImpl implements FetchReferral {
  const _$FetchReferralImpl({required this.context});

  @override
  final BuildContext context;

  @override
  String toString() {
    return 'ProfileEvent.fetchReferral(context: $context)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$FetchReferralImpl &&
            (identical(other.context, context) || other.context == context));
  }

  @override
  int get hashCode => Object.hash(runtimeType, context);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$FetchReferralImplCopyWith<_$FetchReferralImpl> get copyWith =>
      __$$FetchReferralImplCopyWithImpl<_$FetchReferralImpl>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) {
    return fetchReferral(context);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) {
    return fetchReferral?.call(context);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) {
    if (fetchReferral != null) {
      return fetchReferral(context);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) {
    return fetchReferral(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) {
    return fetchReferral?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) {
    if (fetchReferral != null) {
      return fetchReferral(this);
    }
    return orElse();
  }
}

abstract class FetchReferral implements ProfileEvent {
  const factory FetchReferral({required final BuildContext context}) =
      _$FetchReferralImpl;

  BuildContext get context;
  @JsonKey(ignore: true)
  _$$FetchReferralImplCopyWith<_$FetchReferralImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$SetProgressImplCopyWith<$Res> {
  factory _$$SetProgressImplCopyWith(
          _$SetProgressImpl value, $Res Function(_$SetProgressImpl) then) =
      __$$SetProgressImplCopyWithImpl<$Res>;
  @useResult
  $Res call({String? taskId, int? index, int progress});
}

/// @nodoc
class __$$SetProgressImplCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$SetProgressImpl>
    implements _$$SetProgressImplCopyWith<$Res> {
  __$$SetProgressImplCopyWithImpl(
      _$SetProgressImpl _value, $Res Function(_$SetProgressImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? taskId = freezed,
    Object? index = freezed,
    Object? progress = null,
  }) {
    return _then(_$SetProgressImpl(
      taskId: freezed == taskId
          ? _value.taskId
          : taskId // ignore: cast_nullable_to_non_nullable
              as String?,
      index: freezed == index
          ? _value.index
          : index // ignore: cast_nullable_to_non_nullable
              as int?,
      progress: null == progress
          ? _value.progress
          : progress // ignore: cast_nullable_to_non_nullable
              as int,
    ));
  }
}

/// @nodoc

class _$SetProgressImpl implements SetProgress {
  const _$SetProgressImpl({this.taskId, this.index, required this.progress});

  @override
  final String? taskId;
  @override
  final int? index;
  @override
  final int progress;

  @override
  String toString() {
    return 'ProfileEvent.setProgress(taskId: $taskId, index: $index, progress: $progress)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$SetProgressImpl &&
            (identical(other.taskId, taskId) || other.taskId == taskId) &&
            (identical(other.index, index) || other.index == index) &&
            (identical(other.progress, progress) ||
                other.progress == progress));
  }

  @override
  int get hashCode => Object.hash(runtimeType, taskId, index, progress);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$SetProgressImplCopyWith<_$SetProgressImpl> get copyWith =>
      __$$SetProgressImplCopyWithImpl<_$SetProgressImpl>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) {
    return setProgress(taskId, index, progress);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) {
    return setProgress?.call(taskId, index, progress);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) {
    if (setProgress != null) {
      return setProgress(taskId, index, progress);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) {
    return setProgress(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) {
    return setProgress?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) {
    if (setProgress != null) {
      return setProgress(this);
    }
    return orElse();
  }
}

abstract class SetProgress implements ProfileEvent {
  const factory SetProgress(
      {final String? taskId,
      final int? index,
      required final int progress}) = _$SetProgressImpl;

  String? get taskId;
  int? get index;
  int get progress;
  @JsonKey(ignore: true)
  _$$SetProgressImplCopyWith<_$SetProgressImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$FetchDigitalListImplCopyWith<$Res> {
  factory _$$FetchDigitalListImplCopyWith(_$FetchDigitalListImpl value,
          $Res Function(_$FetchDigitalListImpl) then) =
      __$$FetchDigitalListImplCopyWithImpl<$Res>;
  @useResult
  $Res call(
      {BuildContext context, bool? isRefresh, RefreshController? controller});
}

/// @nodoc
class __$$FetchDigitalListImplCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$FetchDigitalListImpl>
    implements _$$FetchDigitalListImplCopyWith<$Res> {
  __$$FetchDigitalListImplCopyWithImpl(_$FetchDigitalListImpl _value,
      $Res Function(_$FetchDigitalListImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? context = null,
    Object? isRefresh = freezed,
    Object? controller = freezed,
  }) {
    return _then(_$FetchDigitalListImpl(
      context: null == context
          ? _value.context
          : context // ignore: cast_nullable_to_non_nullable
              as BuildContext,
      isRefresh: freezed == isRefresh
          ? _value.isRefresh
          : isRefresh // ignore: cast_nullable_to_non_nullable
              as bool?,
      controller: freezed == controller
          ? _value.controller
          : controller // ignore: cast_nullable_to_non_nullable
              as RefreshController?,
    ));
  }
}

/// @nodoc

class _$FetchDigitalListImpl implements FetchDigitalList {
  const _$FetchDigitalListImpl(
      {required this.context, this.isRefresh, this.controller});

  @override
  final BuildContext context;
  @override
  final bool? isRefresh;
  @override
  final RefreshController? controller;

  @override
  String toString() {
    return 'ProfileEvent.fetchDigitalList(context: $context, isRefresh: $isRefresh, controller: $controller)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$FetchDigitalListImpl &&
            (identical(other.context, context) || other.context == context) &&
            (identical(other.isRefresh, isRefresh) ||
                other.isRefresh == isRefresh) &&
            (identical(other.controller, controller) ||
                other.controller == controller));
  }

  @override
  int get hashCode => Object.hash(runtimeType, context, isRefresh, controller);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$FetchDigitalListImplCopyWith<_$FetchDigitalListImpl> get copyWith =>
      __$$FetchDigitalListImplCopyWithImpl<_$FetchDigitalListImpl>(
          this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) {
    return fetchDigitalList(context, isRefresh, controller);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) {
    return fetchDigitalList?.call(context, isRefresh, controller);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) {
    if (fetchDigitalList != null) {
      return fetchDigitalList(context, isRefresh, controller);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) {
    return fetchDigitalList(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) {
    return fetchDigitalList?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) {
    if (fetchDigitalList != null) {
      return fetchDigitalList(this);
    }
    return orElse();
  }
}

abstract class FetchDigitalList implements ProfileEvent {
  const factory FetchDigitalList(
      {required final BuildContext context,
      final bool? isRefresh,
      final RefreshController? controller}) = _$FetchDigitalListImpl;

  BuildContext get context;
  bool? get isRefresh;
  RefreshController? get controller;
  @JsonKey(ignore: true)
  _$$FetchDigitalListImplCopyWith<_$FetchDigitalListImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$GetPolicyImplCopyWith<$Res> {
  factory _$$GetPolicyImplCopyWith(
          _$GetPolicyImpl value, $Res Function(_$GetPolicyImpl) then) =
      __$$GetPolicyImplCopyWithImpl<$Res>;
  @useResult
  $Res call({BuildContext context});
}

/// @nodoc
class __$$GetPolicyImplCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$GetPolicyImpl>
    implements _$$GetPolicyImplCopyWith<$Res> {
  __$$GetPolicyImplCopyWithImpl(
      _$GetPolicyImpl _value, $Res Function(_$GetPolicyImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? context = null,
  }) {
    return _then(_$GetPolicyImpl(
      context: null == context
          ? _value.context
          : context // ignore: cast_nullable_to_non_nullable
              as BuildContext,
    ));
  }
}

/// @nodoc

class _$GetPolicyImpl implements GetPolicy {
  const _$GetPolicyImpl({required this.context});

  @override
  final BuildContext context;

  @override
  String toString() {
    return 'ProfileEvent.getPolicy(context: $context)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$GetPolicyImpl &&
            (identical(other.context, context) || other.context == context));
  }

  @override
  int get hashCode => Object.hash(runtimeType, context);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$GetPolicyImplCopyWith<_$GetPolicyImpl> get copyWith =>
      __$$GetPolicyImplCopyWithImpl<_$GetPolicyImpl>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) {
    return getPolicy(context);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) {
    return getPolicy?.call(context);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) {
    if (getPolicy != null) {
      return getPolicy(context);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) {
    return getPolicy(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) {
    return getPolicy?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) {
    if (getPolicy != null) {
      return getPolicy(this);
    }
    return orElse();
  }
}

abstract class GetPolicy implements ProfileEvent {
  const factory GetPolicy({required final BuildContext context}) =
      _$GetPolicyImpl;

  BuildContext get context;
  @JsonKey(ignore: true)
  _$$GetPolicyImplCopyWith<_$GetPolicyImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$GetTermImplCopyWith<$Res> {
  factory _$$GetTermImplCopyWith(
          _$GetTermImpl value, $Res Function(_$GetTermImpl) then) =
      __$$GetTermImplCopyWithImpl<$Res>;
  @useResult
  $Res call({BuildContext context});
}

/// @nodoc
class __$$GetTermImplCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$GetTermImpl>
    implements _$$GetTermImplCopyWith<$Res> {
  __$$GetTermImplCopyWithImpl(
      _$GetTermImpl _value, $Res Function(_$GetTermImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? context = null,
  }) {
    return _then(_$GetTermImpl(
      context: null == context
          ? _value.context
          : context // ignore: cast_nullable_to_non_nullable
              as BuildContext,
    ));
  }
}

/// @nodoc

class _$GetTermImpl implements GetTerm {
  const _$GetTermImpl({required this.context});

  @override
  final BuildContext context;

  @override
  String toString() {
    return 'ProfileEvent.getTerm(context: $context)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$GetTermImpl &&
            (identical(other.context, context) || other.context == context));
  }

  @override
  int get hashCode => Object.hash(runtimeType, context);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$GetTermImplCopyWith<_$GetTermImpl> get copyWith =>
      __$$GetTermImplCopyWithImpl<_$GetTermImpl>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String? imagePath) updateImagePath,
    required TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)
        updateUser,
    required TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)
        updatePassword,
    required TResult Function() showPassword,
    required TResult Function() showConfirmPassword,
    required TResult Function(BuildContext context) getLanguage,
    required TResult Function(BuildContext context) getCurrency,
    required TResult Function(BuildContext context) getHelps,
    required TResult Function() updateLan,
    required TResult Function(BuildContext context) fetchProfile,
    required TResult Function(BuildContext context) fetchReferral,
    required TResult Function(String? taskId, int? index, int progress)
        setProgress,
    required TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)
        fetchDigitalList,
    required TResult Function(BuildContext context) getPolicy,
    required TResult Function(BuildContext context) getTerm,
  }) {
    return getTerm(context);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String? imagePath)? updateImagePath,
    TResult? Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult? Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult? Function()? showPassword,
    TResult? Function()? showConfirmPassword,
    TResult? Function(BuildContext context)? getLanguage,
    TResult? Function(BuildContext context)? getCurrency,
    TResult? Function(BuildContext context)? getHelps,
    TResult? Function()? updateLan,
    TResult? Function(BuildContext context)? fetchProfile,
    TResult? Function(BuildContext context)? fetchReferral,
    TResult? Function(String? taskId, int? index, int progress)? setProgress,
    TResult? Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult? Function(BuildContext context)? getPolicy,
    TResult? Function(BuildContext context)? getTerm,
  }) {
    return getTerm?.call(context);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String? imagePath)? updateImagePath,
    TResult Function(String firstName, String lastName, String phone,
            String email, BuildContext context, VoidCallback? onSuccess)?
        updateUser,
    TResult Function(String newPassword, String confirmPassword,
            BuildContext context, VoidCallback? onSuccess)?
        updatePassword,
    TResult Function()? showPassword,
    TResult Function()? showConfirmPassword,
    TResult Function(BuildContext context)? getLanguage,
    TResult Function(BuildContext context)? getCurrency,
    TResult Function(BuildContext context)? getHelps,
    TResult Function()? updateLan,
    TResult Function(BuildContext context)? fetchProfile,
    TResult Function(BuildContext context)? fetchReferral,
    TResult Function(String? taskId, int? index, int progress)? setProgress,
    TResult Function(BuildContext context, bool? isRefresh,
            RefreshController? controller)?
        fetchDigitalList,
    TResult Function(BuildContext context)? getPolicy,
    TResult Function(BuildContext context)? getTerm,
    required TResult orElse(),
  }) {
    if (getTerm != null) {
      return getTerm(context);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(UpdateImagePath value) updateImagePath,
    required TResult Function(UpdateUser value) updateUser,
    required TResult Function(UpdatePassword value) updatePassword,
    required TResult Function(ShowPassword value) showPassword,
    required TResult Function(ShowConfirmPassword value) showConfirmPassword,
    required TResult Function(GetLanguage value) getLanguage,
    required TResult Function(GetCurrency value) getCurrency,
    required TResult Function(GetHelps value) getHelps,
    required TResult Function(UpdateLan value) updateLan,
    required TResult Function(FetchProfile value) fetchProfile,
    required TResult Function(FetchReferral value) fetchReferral,
    required TResult Function(SetProgress value) setProgress,
    required TResult Function(FetchDigitalList value) fetchDigitalList,
    required TResult Function(GetPolicy value) getPolicy,
    required TResult Function(GetTerm value) getTerm,
  }) {
    return getTerm(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(UpdateImagePath value)? updateImagePath,
    TResult? Function(UpdateUser value)? updateUser,
    TResult? Function(UpdatePassword value)? updatePassword,
    TResult? Function(ShowPassword value)? showPassword,
    TResult? Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult? Function(GetLanguage value)? getLanguage,
    TResult? Function(GetCurrency value)? getCurrency,
    TResult? Function(GetHelps value)? getHelps,
    TResult? Function(UpdateLan value)? updateLan,
    TResult? Function(FetchProfile value)? fetchProfile,
    TResult? Function(FetchReferral value)? fetchReferral,
    TResult? Function(SetProgress value)? setProgress,
    TResult? Function(FetchDigitalList value)? fetchDigitalList,
    TResult? Function(GetPolicy value)? getPolicy,
    TResult? Function(GetTerm value)? getTerm,
  }) {
    return getTerm?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(UpdateImagePath value)? updateImagePath,
    TResult Function(UpdateUser value)? updateUser,
    TResult Function(UpdatePassword value)? updatePassword,
    TResult Function(ShowPassword value)? showPassword,
    TResult Function(ShowConfirmPassword value)? showConfirmPassword,
    TResult Function(GetLanguage value)? getLanguage,
    TResult Function(GetCurrency value)? getCurrency,
    TResult Function(GetHelps value)? getHelps,
    TResult Function(UpdateLan value)? updateLan,
    TResult Function(FetchProfile value)? fetchProfile,
    TResult Function(FetchReferral value)? fetchReferral,
    TResult Function(SetProgress value)? setProgress,
    TResult Function(FetchDigitalList value)? fetchDigitalList,
    TResult Function(GetPolicy value)? getPolicy,
    TResult Function(GetTerm value)? getTerm,
    required TResult orElse(),
  }) {
    if (getTerm != null) {
      return getTerm(this);
    }
    return orElse();
  }
}

abstract class GetTerm implements ProfileEvent {
  const factory GetTerm({required final BuildContext context}) = _$GetTermImpl;

  BuildContext get context;
  @JsonKey(ignore: true)
  _$$GetTermImplCopyWith<_$GetTermImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
mixin _$ProfileState {
  String? get imagePath => throw _privateConstructorUsedError;
  bool get isLoading => throw _privateConstructorUsedError;
  bool get isLanguage => throw _privateConstructorUsedError;
  bool get isCurrency => throw _privateConstructorUsedError;
  bool get isDigitalLoading => throw _privateConstructorUsedError;
  bool get isHelpLoading => throw _privateConstructorUsedError;
  bool get isReferralLoading => throw _privateConstructorUsedError;
  List<LanguageData> get languages => throw _privateConstructorUsedError;
  List<CurrencyData> get currency => throw _privateConstructorUsedError;
  List<HelpModel> get helps => throw _privateConstructorUsedError;
  List<DigitalProduct> get digitalList => throw _privateConstructorUsedError;
  List<DownloadModel> get progressList => throw _privateConstructorUsedError;
  ReferralModel? get referralData => throw _privateConstructorUsedError;
  bool get showNewPassword => throw _privateConstructorUsedError;
  bool get showConfirmPassword => throw _privateConstructorUsedError;
  bool get isPasswordLoading => throw _privateConstructorUsedError;
  Translation? get policy => throw _privateConstructorUsedError;
  Translation? get term => throw _privateConstructorUsedError;

  @JsonKey(ignore: true)
  $ProfileStateCopyWith<ProfileState> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $ProfileStateCopyWith<$Res> {
  factory $ProfileStateCopyWith(
          ProfileState value, $Res Function(ProfileState) then) =
      _$ProfileStateCopyWithImpl<$Res, ProfileState>;
  @useResult
  $Res call(
      {String? imagePath,
      bool isLoading,
      bool isLanguage,
      bool isCurrency,
      bool isDigitalLoading,
      bool isHelpLoading,
      bool isReferralLoading,
      List<LanguageData> languages,
      List<CurrencyData> currency,
      List<HelpModel> helps,
      List<DigitalProduct> digitalList,
      List<DownloadModel> progressList,
      ReferralModel? referralData,
      bool showNewPassword,
      bool showConfirmPassword,
      bool isPasswordLoading,
      Translation? policy,
      Translation? term});
}

/// @nodoc
class _$ProfileStateCopyWithImpl<$Res, $Val extends ProfileState>
    implements $ProfileStateCopyWith<$Res> {
  _$ProfileStateCopyWithImpl(this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? imagePath = freezed,
    Object? isLoading = null,
    Object? isLanguage = null,
    Object? isCurrency = null,
    Object? isDigitalLoading = null,
    Object? isHelpLoading = null,
    Object? isReferralLoading = null,
    Object? languages = null,
    Object? currency = null,
    Object? helps = null,
    Object? digitalList = null,
    Object? progressList = null,
    Object? referralData = freezed,
    Object? showNewPassword = null,
    Object? showConfirmPassword = null,
    Object? isPasswordLoading = null,
    Object? policy = freezed,
    Object? term = freezed,
  }) {
    return _then(_value.copyWith(
      imagePath: freezed == imagePath
          ? _value.imagePath
          : imagePath // ignore: cast_nullable_to_non_nullable
              as String?,
      isLoading: null == isLoading
          ? _value.isLoading
          : isLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      isLanguage: null == isLanguage
          ? _value.isLanguage
          : isLanguage // ignore: cast_nullable_to_non_nullable
              as bool,
      isCurrency: null == isCurrency
          ? _value.isCurrency
          : isCurrency // ignore: cast_nullable_to_non_nullable
              as bool,
      isDigitalLoading: null == isDigitalLoading
          ? _value.isDigitalLoading
          : isDigitalLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      isHelpLoading: null == isHelpLoading
          ? _value.isHelpLoading
          : isHelpLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      isReferralLoading: null == isReferralLoading
          ? _value.isReferralLoading
          : isReferralLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      languages: null == languages
          ? _value.languages
          : languages // ignore: cast_nullable_to_non_nullable
              as List<LanguageData>,
      currency: null == currency
          ? _value.currency
          : currency // ignore: cast_nullable_to_non_nullable
              as List<CurrencyData>,
      helps: null == helps
          ? _value.helps
          : helps // ignore: cast_nullable_to_non_nullable
              as List<HelpModel>,
      digitalList: null == digitalList
          ? _value.digitalList
          : digitalList // ignore: cast_nullable_to_non_nullable
              as List<DigitalProduct>,
      progressList: null == progressList
          ? _value.progressList
          : progressList // ignore: cast_nullable_to_non_nullable
              as List<DownloadModel>,
      referralData: freezed == referralData
          ? _value.referralData
          : referralData // ignore: cast_nullable_to_non_nullable
              as ReferralModel?,
      showNewPassword: null == showNewPassword
          ? _value.showNewPassword
          : showNewPassword // ignore: cast_nullable_to_non_nullable
              as bool,
      showConfirmPassword: null == showConfirmPassword
          ? _value.showConfirmPassword
          : showConfirmPassword // ignore: cast_nullable_to_non_nullable
              as bool,
      isPasswordLoading: null == isPasswordLoading
          ? _value.isPasswordLoading
          : isPasswordLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      policy: freezed == policy
          ? _value.policy
          : policy // ignore: cast_nullable_to_non_nullable
              as Translation?,
      term: freezed == term
          ? _value.term
          : term // ignore: cast_nullable_to_non_nullable
              as Translation?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$ProfileStateImplCopyWith<$Res>
    implements $ProfileStateCopyWith<$Res> {
  factory _$$ProfileStateImplCopyWith(
          _$ProfileStateImpl value, $Res Function(_$ProfileStateImpl) then) =
      __$$ProfileStateImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {String? imagePath,
      bool isLoading,
      bool isLanguage,
      bool isCurrency,
      bool isDigitalLoading,
      bool isHelpLoading,
      bool isReferralLoading,
      List<LanguageData> languages,
      List<CurrencyData> currency,
      List<HelpModel> helps,
      List<DigitalProduct> digitalList,
      List<DownloadModel> progressList,
      ReferralModel? referralData,
      bool showNewPassword,
      bool showConfirmPassword,
      bool isPasswordLoading,
      Translation? policy,
      Translation? term});
}

/// @nodoc
class __$$ProfileStateImplCopyWithImpl<$Res>
    extends _$ProfileStateCopyWithImpl<$Res, _$ProfileStateImpl>
    implements _$$ProfileStateImplCopyWith<$Res> {
  __$$ProfileStateImplCopyWithImpl(
      _$ProfileStateImpl _value, $Res Function(_$ProfileStateImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? imagePath = freezed,
    Object? isLoading = null,
    Object? isLanguage = null,
    Object? isCurrency = null,
    Object? isDigitalLoading = null,
    Object? isHelpLoading = null,
    Object? isReferralLoading = null,
    Object? languages = null,
    Object? currency = null,
    Object? helps = null,
    Object? digitalList = null,
    Object? progressList = null,
    Object? referralData = freezed,
    Object? showNewPassword = null,
    Object? showConfirmPassword = null,
    Object? isPasswordLoading = null,
    Object? policy = freezed,
    Object? term = freezed,
  }) {
    return _then(_$ProfileStateImpl(
      imagePath: freezed == imagePath
          ? _value.imagePath
          : imagePath // ignore: cast_nullable_to_non_nullable
              as String?,
      isLoading: null == isLoading
          ? _value.isLoading
          : isLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      isLanguage: null == isLanguage
          ? _value.isLanguage
          : isLanguage // ignore: cast_nullable_to_non_nullable
              as bool,
      isCurrency: null == isCurrency
          ? _value.isCurrency
          : isCurrency // ignore: cast_nullable_to_non_nullable
              as bool,
      isDigitalLoading: null == isDigitalLoading
          ? _value.isDigitalLoading
          : isDigitalLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      isHelpLoading: null == isHelpLoading
          ? _value.isHelpLoading
          : isHelpLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      isReferralLoading: null == isReferralLoading
          ? _value.isReferralLoading
          : isReferralLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      languages: null == languages
          ? _value._languages
          : languages // ignore: cast_nullable_to_non_nullable
              as List<LanguageData>,
      currency: null == currency
          ? _value._currency
          : currency // ignore: cast_nullable_to_non_nullable
              as List<CurrencyData>,
      helps: null == helps
          ? _value._helps
          : helps // ignore: cast_nullable_to_non_nullable
              as List<HelpModel>,
      digitalList: null == digitalList
          ? _value._digitalList
          : digitalList // ignore: cast_nullable_to_non_nullable
              as List<DigitalProduct>,
      progressList: null == progressList
          ? _value._progressList
          : progressList // ignore: cast_nullable_to_non_nullable
              as List<DownloadModel>,
      referralData: freezed == referralData
          ? _value.referralData
          : referralData // ignore: cast_nullable_to_non_nullable
              as ReferralModel?,
      showNewPassword: null == showNewPassword
          ? _value.showNewPassword
          : showNewPassword // ignore: cast_nullable_to_non_nullable
              as bool,
      showConfirmPassword: null == showConfirmPassword
          ? _value.showConfirmPassword
          : showConfirmPassword // ignore: cast_nullable_to_non_nullable
              as bool,
      isPasswordLoading: null == isPasswordLoading
          ? _value.isPasswordLoading
          : isPasswordLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      policy: freezed == policy
          ? _value.policy
          : policy // ignore: cast_nullable_to_non_nullable
              as Translation?,
      term: freezed == term
          ? _value.term
          : term // ignore: cast_nullable_to_non_nullable
              as Translation?,
    ));
  }
}

/// @nodoc

class _$ProfileStateImpl implements _ProfileState {
  const _$ProfileStateImpl(
      {this.imagePath = null,
      this.isLoading = false,
      this.isLanguage = false,
      this.isCurrency = false,
      this.isDigitalLoading = false,
      this.isHelpLoading = false,
      this.isReferralLoading = true,
      final List<LanguageData> languages = const [],
      final List<CurrencyData> currency = const [],
      final List<HelpModel> helps = const [],
      final List<DigitalProduct> digitalList = const [],
      final List<DownloadModel> progressList = const [],
      this.referralData = null,
      this.showNewPassword = false,
      this.showConfirmPassword = false,
      this.isPasswordLoading = false,
      this.policy = null,
      this.term = null})
      : _languages = languages,
        _currency = currency,
        _helps = helps,
        _digitalList = digitalList,
        _progressList = progressList;

  @override
  @JsonKey()
  final String? imagePath;
  @override
  @JsonKey()
  final bool isLoading;
  @override
  @JsonKey()
  final bool isLanguage;
  @override
  @JsonKey()
  final bool isCurrency;
  @override
  @JsonKey()
  final bool isDigitalLoading;
  @override
  @JsonKey()
  final bool isHelpLoading;
  @override
  @JsonKey()
  final bool isReferralLoading;
  final List<LanguageData> _languages;
  @override
  @JsonKey()
  List<LanguageData> get languages {
    if (_languages is EqualUnmodifiableListView) return _languages;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_languages);
  }

  final List<CurrencyData> _currency;
  @override
  @JsonKey()
  List<CurrencyData> get currency {
    if (_currency is EqualUnmodifiableListView) return _currency;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_currency);
  }

  final List<HelpModel> _helps;
  @override
  @JsonKey()
  List<HelpModel> get helps {
    if (_helps is EqualUnmodifiableListView) return _helps;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_helps);
  }

  final List<DigitalProduct> _digitalList;
  @override
  @JsonKey()
  List<DigitalProduct> get digitalList {
    if (_digitalList is EqualUnmodifiableListView) return _digitalList;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_digitalList);
  }

  final List<DownloadModel> _progressList;
  @override
  @JsonKey()
  List<DownloadModel> get progressList {
    if (_progressList is EqualUnmodifiableListView) return _progressList;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_progressList);
  }

  @override
  @JsonKey()
  final ReferralModel? referralData;
  @override
  @JsonKey()
  final bool showNewPassword;
  @override
  @JsonKey()
  final bool showConfirmPassword;
  @override
  @JsonKey()
  final bool isPasswordLoading;
  @override
  @JsonKey()
  final Translation? policy;
  @override
  @JsonKey()
  final Translation? term;

  @override
  String toString() {
    return 'ProfileState(imagePath: $imagePath, isLoading: $isLoading, isLanguage: $isLanguage, isCurrency: $isCurrency, isDigitalLoading: $isDigitalLoading, isHelpLoading: $isHelpLoading, isReferralLoading: $isReferralLoading, languages: $languages, currency: $currency, helps: $helps, digitalList: $digitalList, progressList: $progressList, referralData: $referralData, showNewPassword: $showNewPassword, showConfirmPassword: $showConfirmPassword, isPasswordLoading: $isPasswordLoading, policy: $policy, term: $term)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$ProfileStateImpl &&
            (identical(other.imagePath, imagePath) ||
                other.imagePath == imagePath) &&
            (identical(other.isLoading, isLoading) ||
                other.isLoading == isLoading) &&
            (identical(other.isLanguage, isLanguage) ||
                other.isLanguage == isLanguage) &&
            (identical(other.isCurrency, isCurrency) ||
                other.isCurrency == isCurrency) &&
            (identical(other.isDigitalLoading, isDigitalLoading) ||
                other.isDigitalLoading == isDigitalLoading) &&
            (identical(other.isHelpLoading, isHelpLoading) ||
                other.isHelpLoading == isHelpLoading) &&
            (identical(other.isReferralLoading, isReferralLoading) ||
                other.isReferralLoading == isReferralLoading) &&
            const DeepCollectionEquality()
                .equals(other._languages, _languages) &&
            const DeepCollectionEquality().equals(other._currency, _currency) &&
            const DeepCollectionEquality().equals(other._helps, _helps) &&
            const DeepCollectionEquality()
                .equals(other._digitalList, _digitalList) &&
            const DeepCollectionEquality()
                .equals(other._progressList, _progressList) &&
            (identical(other.referralData, referralData) ||
                other.referralData == referralData) &&
            (identical(other.showNewPassword, showNewPassword) ||
                other.showNewPassword == showNewPassword) &&
            (identical(other.showConfirmPassword, showConfirmPassword) ||
                other.showConfirmPassword == showConfirmPassword) &&
            (identical(other.isPasswordLoading, isPasswordLoading) ||
                other.isPasswordLoading == isPasswordLoading) &&
            (identical(other.policy, policy) || other.policy == policy) &&
            (identical(other.term, term) || other.term == term));
  }

  @override
  int get hashCode => Object.hash(
      runtimeType,
      imagePath,
      isLoading,
      isLanguage,
      isCurrency,
      isDigitalLoading,
      isHelpLoading,
      isReferralLoading,
      const DeepCollectionEquality().hash(_languages),
      const DeepCollectionEquality().hash(_currency),
      const DeepCollectionEquality().hash(_helps),
      const DeepCollectionEquality().hash(_digitalList),
      const DeepCollectionEquality().hash(_progressList),
      referralData,
      showNewPassword,
      showConfirmPassword,
      isPasswordLoading,
      policy,
      term);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$ProfileStateImplCopyWith<_$ProfileStateImpl> get copyWith =>
      __$$ProfileStateImplCopyWithImpl<_$ProfileStateImpl>(this, _$identity);
}

abstract class _ProfileState implements ProfileState {
  const factory _ProfileState(
      {final String? imagePath,
      final bool isLoading,
      final bool isLanguage,
      final bool isCurrency,
      final bool isDigitalLoading,
      final bool isHelpLoading,
      final bool isReferralLoading,
      final List<LanguageData> languages,
      final List<CurrencyData> currency,
      final List<HelpModel> helps,
      final List<DigitalProduct> digitalList,
      final List<DownloadModel> progressList,
      final ReferralModel? referralData,
      final bool showNewPassword,
      final bool showConfirmPassword,
      final bool isPasswordLoading,
      final Translation? policy,
      final Translation? term}) = _$ProfileStateImpl;

  @override
  String? get imagePath;
  @override
  bool get isLoading;
  @override
  bool get isLanguage;
  @override
  bool get isCurrency;
  @override
  bool get isDigitalLoading;
  @override
  bool get isHelpLoading;
  @override
  bool get isReferralLoading;
  @override
  List<LanguageData> get languages;
  @override
  List<CurrencyData> get currency;
  @override
  List<HelpModel> get helps;
  @override
  List<DigitalProduct> get digitalList;
  @override
  List<DownloadModel> get progressList;
  @override
  ReferralModel? get referralData;
  @override
  bool get showNewPassword;
  @override
  bool get showConfirmPassword;
  @override
  bool get isPasswordLoading;
  @override
  Translation? get policy;
  @override
  Translation? get term;
  @override
  @JsonKey(ignore: true)
  _$$ProfileStateImplCopyWith<_$ProfileStateImpl> get copyWith =>
      throw _privateConstructorUsedError;
}
