// 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#custom-getters-and-methods');

/// @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 _$$UpdateImagePathCopyWith<$Res> {
  factory _$$UpdateImagePathCopyWith(
          _$UpdateImagePath value, $Res Function(_$UpdateImagePath) then) =
      __$$UpdateImagePathCopyWithImpl<$Res>;
  @useResult
  $Res call({String? imagePath});
}

/// @nodoc
class __$$UpdateImagePathCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$UpdateImagePath>
    implements _$$UpdateImagePathCopyWith<$Res> {
  __$$UpdateImagePathCopyWithImpl(
      _$UpdateImagePath _value, $Res Function(_$UpdateImagePath) _then)
      : super(_value, _then);

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

/// @nodoc

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

  @override
  final String? imagePath;

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

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

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

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$UpdateImagePathCopyWith<_$UpdateImagePath> get copyWith =>
      __$$UpdateImagePathCopyWithImpl<_$UpdateImagePath>(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}) =
      _$UpdateImagePath;

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

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

/// @nodoc
class __$$UpdateUserCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$UpdateUser>
    implements _$$UpdateUserCopyWith<$Res> {
  __$$UpdateUserCopyWithImpl(
      _$UpdateUser _value, $Res Function(_$UpdateUser) _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(_$UpdateUser(
      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 _$UpdateUser implements UpdateUser {
  const _$UpdateUser(
      {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 ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$UpdateUser &&
            (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')
  _$$UpdateUserCopyWith<_$UpdateUser> get copyWith =>
      __$$UpdateUserCopyWithImpl<_$UpdateUser>(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}) = _$UpdateUser;

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

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

/// @nodoc
class __$$UpdatePasswordCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$UpdatePassword>
    implements _$$UpdatePasswordCopyWith<$Res> {
  __$$UpdatePasswordCopyWithImpl(
      _$UpdatePassword _value, $Res Function(_$UpdatePassword) _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(_$UpdatePassword(
      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 _$UpdatePassword implements UpdatePassword {
  const _$UpdatePassword(
      {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 ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$UpdatePassword &&
            (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')
  _$$UpdatePasswordCopyWith<_$UpdatePassword> get copyWith =>
      __$$UpdatePasswordCopyWithImpl<_$UpdatePassword>(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}) = _$UpdatePassword;

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

/// @nodoc
abstract class _$$ShowPasswordCopyWith<$Res> {
  factory _$$ShowPasswordCopyWith(
          _$ShowPassword value, $Res Function(_$ShowPassword) then) =
      __$$ShowPasswordCopyWithImpl<$Res>;
}

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

/// @nodoc

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

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

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

  @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() = _$ShowPassword;
}

/// @nodoc
abstract class _$$ShowConfirmPasswordCopyWith<$Res> {
  factory _$$ShowConfirmPasswordCopyWith(_$ShowConfirmPassword value,
          $Res Function(_$ShowConfirmPassword) then) =
      __$$ShowConfirmPasswordCopyWithImpl<$Res>;
}

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

/// @nodoc

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

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

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

  @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() = _$ShowConfirmPassword;
}

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

/// @nodoc
class __$$GetLanguageCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$GetLanguage>
    implements _$$GetLanguageCopyWith<$Res> {
  __$$GetLanguageCopyWithImpl(
      _$GetLanguage _value, $Res Function(_$GetLanguage) _then)
      : super(_value, _then);

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

/// @nodoc

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

  @override
  final BuildContext context;

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

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

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

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$GetLanguageCopyWith<_$GetLanguage> get copyWith =>
      __$$GetLanguageCopyWithImpl<_$GetLanguage>(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}) =
      _$GetLanguage;

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

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

/// @nodoc
class __$$GetCurrencyCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$GetCurrency>
    implements _$$GetCurrencyCopyWith<$Res> {
  __$$GetCurrencyCopyWithImpl(
      _$GetCurrency _value, $Res Function(_$GetCurrency) _then)
      : super(_value, _then);

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

/// @nodoc

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

  @override
  final BuildContext context;

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

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

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

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$GetCurrencyCopyWith<_$GetCurrency> get copyWith =>
      __$$GetCurrencyCopyWithImpl<_$GetCurrency>(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}) =
      _$GetCurrency;

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

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

/// @nodoc
class __$$GetHelpsCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$GetHelps>
    implements _$$GetHelpsCopyWith<$Res> {
  __$$GetHelpsCopyWithImpl(_$GetHelps _value, $Res Function(_$GetHelps) _then)
      : super(_value, _then);

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

/// @nodoc

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

  @override
  final BuildContext context;

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

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

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

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$GetHelpsCopyWith<_$GetHelps> get copyWith =>
      __$$GetHelpsCopyWithImpl<_$GetHelps>(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}) = _$GetHelps;

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

/// @nodoc
abstract class _$$UpdateLanCopyWith<$Res> {
  factory _$$UpdateLanCopyWith(
          _$UpdateLan value, $Res Function(_$UpdateLan) then) =
      __$$UpdateLanCopyWithImpl<$Res>;
}

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

/// @nodoc

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

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

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

  @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() = _$UpdateLan;
}

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

/// @nodoc
class __$$FetchProfileCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$FetchProfile>
    implements _$$FetchProfileCopyWith<$Res> {
  __$$FetchProfileCopyWithImpl(
      _$FetchProfile _value, $Res Function(_$FetchProfile) _then)
      : super(_value, _then);

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

/// @nodoc

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

  @override
  final BuildContext context;

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

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

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

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$FetchProfileCopyWith<_$FetchProfile> get copyWith =>
      __$$FetchProfileCopyWithImpl<_$FetchProfile>(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}) =
      _$FetchProfile;

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

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

/// @nodoc
class __$$FetchReferralCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$FetchReferral>
    implements _$$FetchReferralCopyWith<$Res> {
  __$$FetchReferralCopyWithImpl(
      _$FetchReferral _value, $Res Function(_$FetchReferral) _then)
      : super(_value, _then);

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

/// @nodoc

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

  @override
  final BuildContext context;

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

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

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

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$FetchReferralCopyWith<_$FetchReferral> get copyWith =>
      __$$FetchReferralCopyWithImpl<_$FetchReferral>(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}) =
      _$FetchReferral;

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

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

/// @nodoc
class __$$SetProgressCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$SetProgress>
    implements _$$SetProgressCopyWith<$Res> {
  __$$SetProgressCopyWithImpl(
      _$SetProgress _value, $Res Function(_$SetProgress) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? taskId = freezed,
    Object? index = freezed,
    Object? progress = null,
  }) {
    return _then(_$SetProgress(
      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 _$SetProgress implements SetProgress {
  const _$SetProgress({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 ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$SetProgress &&
            (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')
  _$$SetProgressCopyWith<_$SetProgress> get copyWith =>
      __$$SetProgressCopyWithImpl<_$SetProgress>(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}) = _$SetProgress;

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

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

/// @nodoc
class __$$FetchDigitalListCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$FetchDigitalList>
    implements _$$FetchDigitalListCopyWith<$Res> {
  __$$FetchDigitalListCopyWithImpl(
      _$FetchDigitalList _value, $Res Function(_$FetchDigitalList) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? context = null,
    Object? isRefresh = freezed,
    Object? controller = freezed,
  }) {
    return _then(_$FetchDigitalList(
      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 _$FetchDigitalList implements FetchDigitalList {
  const _$FetchDigitalList(
      {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 ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$FetchDigitalList &&
            (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')
  _$$FetchDigitalListCopyWith<_$FetchDigitalList> get copyWith =>
      __$$FetchDigitalListCopyWithImpl<_$FetchDigitalList>(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}) = _$FetchDigitalList;

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

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

/// @nodoc
class __$$GetPolicyCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$GetPolicy>
    implements _$$GetPolicyCopyWith<$Res> {
  __$$GetPolicyCopyWithImpl(
      _$GetPolicy _value, $Res Function(_$GetPolicy) _then)
      : super(_value, _then);

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

/// @nodoc

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

  @override
  final BuildContext context;

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

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

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

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$GetPolicyCopyWith<_$GetPolicy> get copyWith =>
      __$$GetPolicyCopyWithImpl<_$GetPolicy>(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}) = _$GetPolicy;

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

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

/// @nodoc
class __$$GetTermCopyWithImpl<$Res>
    extends _$ProfileEventCopyWithImpl<$Res, _$GetTerm>
    implements _$$GetTermCopyWith<$Res> {
  __$$GetTermCopyWithImpl(_$GetTerm _value, $Res Function(_$GetTerm) _then)
      : super(_value, _then);

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

/// @nodoc

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

  @override
  final BuildContext context;

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

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

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

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$GetTermCopyWith<_$GetTerm> get copyWith =>
      __$$GetTermCopyWithImpl<_$GetTerm>(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}) = _$GetTerm;

  BuildContext get context;
  @JsonKey(ignore: true)
  _$$GetTermCopyWith<_$GetTerm> 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 _$$_ProfileStateCopyWith<$Res>
    implements $ProfileStateCopyWith<$Res> {
  factory _$$_ProfileStateCopyWith(
          _$_ProfileState value, $Res Function(_$_ProfileState) then) =
      __$$_ProfileStateCopyWithImpl<$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 __$$_ProfileStateCopyWithImpl<$Res>
    extends _$ProfileStateCopyWithImpl<$Res, _$_ProfileState>
    implements _$$_ProfileStateCopyWith<$Res> {
  __$$_ProfileStateCopyWithImpl(
      _$_ProfileState _value, $Res Function(_$_ProfileState) _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(_$_ProfileState(
      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 _$_ProfileState implements _ProfileState {
  const _$_ProfileState(
      {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 ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$_ProfileState &&
            (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')
  _$$_ProfileStateCopyWith<_$_ProfileState> get copyWith =>
      __$$_ProfileStateCopyWithImpl<_$_ProfileState>(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}) = _$_ProfileState;

  @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)
  _$$_ProfileStateCopyWith<_$_ProfileState> get copyWith =>
      throw _privateConstructorUsedError;
}
