From 87548845442d24ba67694da85cf0f3e7c0e82903 Mon Sep 17 00:00:00 2001 From: JulianAlcala Date: Mon, 5 Jan 2026 10:03:18 +0100 Subject: [PATCH] sign up parameters fixed change document, documentType and country code --- .../android/app/src/main/AndroidManifest.xml | 4 +- apps/mobile_app/lib/main.dart | 3 +- apps/mobile_app/pubspec.lock | 2 +- apps/mobile_app/pubspec.yaml | 1 + .../data/models/sign_up_request_model.dart | 10 +++-- .../models/sign_up_request_model.freezed.dart | 22 ++++++----- .../data/models/sign_up_request_model.g.dart | 8 ++-- .../sign_up/presentation/sign_up_steps.dart | 17 ++++---- .../state/sign_up_view_model.dart | 7 ++-- .../state/sign_up_view_state.dart | 1 + .../state/sign_up_view_state.freezed.dart | 39 ++++++++++--------- packages/sf_localizations/assets/l10n/de.json | 3 -- packages/sf_localizations/assets/l10n/en.json | 3 -- packages/sf_localizations/assets/l10n/es.json | 5 +-- packages/sf_localizations/assets/l10n/fr.json | 3 -- packages/sf_localizations/assets/l10n/it.json | 3 -- packages/sf_localizations/assets/l10n/pt.json | 3 -- .../lib/src/generated/i18n.dart | 3 -- 18 files changed, 68 insertions(+), 69 deletions(-) diff --git a/apps/mobile_app/android/app/src/main/AndroidManifest.xml b/apps/mobile_app/android/app/src/main/AndroidManifest.xml index 38d21dbf..2bb4d4d7 100644 --- a/apps/mobile_app/android/app/src/main/AndroidManifest.xml +++ b/apps/mobile_app/android/app/src/main/AndroidManifest.xml @@ -1,4 +1,6 @@ - + + + json) => _$SignUpRequestModelFromJson(json); @override - @JsonKey(name: 'dni') + @JsonKey(name: 'document') String get documentNumber; + @override + @JsonKey(name: 'relationType') + String get relationship; } extension SignUpRequestModelMapper on SignUpRequestEntity { diff --git a/modules/auth/lib/src/core/data/models/sign_up_request_model.freezed.dart b/modules/auth/lib/src/core/data/models/sign_up_request_model.freezed.dart index 0bbf6d41..d9f06424 100644 --- a/modules/auth/lib/src/core/data/models/sign_up_request_model.freezed.dart +++ b/modules/auth/lib/src/core/data/models/sign_up_request_model.freezed.dart @@ -15,7 +15,9 @@ T _$identity(T value) => value; /// @nodoc mixin _$SignUpRequestModel { - String get firstName; String get lastName; String get email; String get phone; String get language; String get password; List get taxResidences; List get addresses; int get bornAt; String get userId; String get placeOfBirth; String get birthCountry;@JsonKey(name: 'dni') String get documentNumber; String get documentType; String get relationship; + String get firstName; String get lastName; String get email; String get phone; String get language; String get password; List get taxResidences; List get addresses; int get bornAt; String get userId; String get placeOfBirth; String get birthCountry;// ignore: invalid_annotation_target +@JsonKey(name: 'document') String get documentNumber; String get documentType;// ignore: invalid_annotation_target +@JsonKey(name: 'relationType') String get relationship; /// Create a copy of SignUpRequestModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -48,7 +50,7 @@ abstract mixin class $SignUpRequestModelCopyWith<$Res> { factory $SignUpRequestModelCopyWith(SignUpRequestModel value, $Res Function(SignUpRequestModel) _then) = _$SignUpRequestModelCopyWithImpl; @useResult $Res call({ - String firstName, String lastName, String email, String phone, String language, String password, List taxResidences, List addresses, int bornAt, String userId, String placeOfBirth, String birthCountry,@JsonKey(name: 'dni') String documentNumber, String documentType, String relationship + String firstName, String lastName, String email, String phone, String language, String password, List taxResidences, List addresses, int bornAt, String userId, String placeOfBirth, String birthCountry,@JsonKey(name: 'document') String documentNumber, String documentType,@JsonKey(name: 'relationType') String relationship }); @@ -167,7 +169,7 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function( String firstName, String lastName, String email, String phone, String language, String password, List taxResidences, List addresses, int bornAt, String userId, String placeOfBirth, String birthCountry, @JsonKey(name: 'dni') String documentNumber, String documentType, String relationship)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function( String firstName, String lastName, String email, String phone, String language, String password, List taxResidences, List addresses, int bornAt, String userId, String placeOfBirth, String birthCountry, @JsonKey(name: 'document') String documentNumber, String documentType, @JsonKey(name: 'relationType') String relationship)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _SignUpRequestModel() when $default != null: return $default(_that.firstName,_that.lastName,_that.email,_that.phone,_that.language,_that.password,_that.taxResidences,_that.addresses,_that.bornAt,_that.userId,_that.placeOfBirth,_that.birthCountry,_that.documentNumber,_that.documentType,_that.relationship);case _: @@ -188,7 +190,7 @@ return $default(_that.firstName,_that.lastName,_that.email,_that.phone,_that.lan /// } /// ``` -@optionalTypeArgs TResult when(TResult Function( String firstName, String lastName, String email, String phone, String language, String password, List taxResidences, List addresses, int bornAt, String userId, String placeOfBirth, String birthCountry, @JsonKey(name: 'dni') String documentNumber, String documentType, String relationship) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function( String firstName, String lastName, String email, String phone, String language, String password, List taxResidences, List addresses, int bornAt, String userId, String placeOfBirth, String birthCountry, @JsonKey(name: 'document') String documentNumber, String documentType, @JsonKey(name: 'relationType') String relationship) $default,) {final _that = this; switch (_that) { case _SignUpRequestModel(): return $default(_that.firstName,_that.lastName,_that.email,_that.phone,_that.language,_that.password,_that.taxResidences,_that.addresses,_that.bornAt,_that.userId,_that.placeOfBirth,_that.birthCountry,_that.documentNumber,_that.documentType,_that.relationship);case _: @@ -208,7 +210,7 @@ return $default(_that.firstName,_that.lastName,_that.email,_that.phone,_that.lan /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function( String firstName, String lastName, String email, String phone, String language, String password, List taxResidences, List addresses, int bornAt, String userId, String placeOfBirth, String birthCountry, @JsonKey(name: 'dni') String documentNumber, String documentType, String relationship)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String firstName, String lastName, String email, String phone, String language, String password, List taxResidences, List addresses, int bornAt, String userId, String placeOfBirth, String birthCountry, @JsonKey(name: 'document') String documentNumber, String documentType, @JsonKey(name: 'relationType') String relationship)? $default,) {final _that = this; switch (_that) { case _SignUpRequestModel() when $default != null: return $default(_that.firstName,_that.lastName,_that.email,_that.phone,_that.language,_that.password,_that.taxResidences,_that.addresses,_that.bornAt,_that.userId,_that.placeOfBirth,_that.birthCountry,_that.documentNumber,_that.documentType,_that.relationship);case _: @@ -223,7 +225,7 @@ return $default(_that.firstName,_that.lastName,_that.email,_that.phone,_that.lan @JsonSerializable() class _SignUpRequestModel implements SignUpRequestModel { - const _SignUpRequestModel({required this.firstName, required this.lastName, required this.email, required this.phone, required this.language, required this.password, required final List taxResidences, required final List addresses, required this.bornAt, required this.userId, required this.placeOfBirth, required this.birthCountry, @JsonKey(name: 'dni') required this.documentNumber, required this.documentType, required this.relationship}): _taxResidences = taxResidences,_addresses = addresses; + const _SignUpRequestModel({required this.firstName, required this.lastName, required this.email, required this.phone, required this.language, required this.password, required final List taxResidences, required final List addresses, required this.bornAt, required this.userId, required this.placeOfBirth, required this.birthCountry, @JsonKey(name: 'document') required this.documentNumber, required this.documentType, @JsonKey(name: 'relationType') required this.relationship}): _taxResidences = taxResidences,_addresses = addresses; factory _SignUpRequestModel.fromJson(Map json) => _$SignUpRequestModelFromJson(json); @override final String firstName; @@ -250,9 +252,11 @@ class _SignUpRequestModel implements SignUpRequestModel { @override final String userId; @override final String placeOfBirth; @override final String birthCountry; -@override@JsonKey(name: 'dni') final String documentNumber; +// ignore: invalid_annotation_target +@override@JsonKey(name: 'document') final String documentNumber; @override final String documentType; -@override final String relationship; +// ignore: invalid_annotation_target +@override@JsonKey(name: 'relationType') final String relationship; /// Create a copy of SignUpRequestModel /// with the given fields replaced by the non-null parameter values. @@ -287,7 +291,7 @@ abstract mixin class _$SignUpRequestModelCopyWith<$Res> implements $SignUpReques factory _$SignUpRequestModelCopyWith(_SignUpRequestModel value, $Res Function(_SignUpRequestModel) _then) = __$SignUpRequestModelCopyWithImpl; @override @useResult $Res call({ - String firstName, String lastName, String email, String phone, String language, String password, List taxResidences, List addresses, int bornAt, String userId, String placeOfBirth, String birthCountry,@JsonKey(name: 'dni') String documentNumber, String documentType, String relationship + String firstName, String lastName, String email, String phone, String language, String password, List taxResidences, List addresses, int bornAt, String userId, String placeOfBirth, String birthCountry,@JsonKey(name: 'document') String documentNumber, String documentType,@JsonKey(name: 'relationType') String relationship }); diff --git a/modules/auth/lib/src/core/data/models/sign_up_request_model.g.dart b/modules/auth/lib/src/core/data/models/sign_up_request_model.g.dart index fb8353b1..38569d37 100644 --- a/modules/auth/lib/src/core/data/models/sign_up_request_model.g.dart +++ b/modules/auth/lib/src/core/data/models/sign_up_request_model.g.dart @@ -24,9 +24,9 @@ _SignUpRequestModel _$SignUpRequestModelFromJson(Map json) => userId: json['userId'] as String, placeOfBirth: json['placeOfBirth'] as String, birthCountry: json['birthCountry'] as String, - documentNumber: json['dni'] as String, + documentNumber: json['document'] as String, documentType: json['documentType'] as String, - relationship: json['relationship'] as String, + relationship: json['relationType'] as String, ); Map _$SignUpRequestModelToJson(_SignUpRequestModel instance) => @@ -43,7 +43,7 @@ Map _$SignUpRequestModelToJson(_SignUpRequestModel instance) => 'userId': instance.userId, 'placeOfBirth': instance.placeOfBirth, 'birthCountry': instance.birthCountry, - 'dni': instance.documentNumber, + 'document': instance.documentNumber, 'documentType': instance.documentType, - 'relationship': instance.relationship, + 'relationType': instance.relationship, }; diff --git a/modules/auth/lib/src/features/sign_up/presentation/sign_up_steps.dart b/modules/auth/lib/src/features/sign_up/presentation/sign_up_steps.dart index 74d60d9d..b2155d47 100644 --- a/modules/auth/lib/src/features/sign_up/presentation/sign_up_steps.dart +++ b/modules/auth/lib/src/features/sign_up/presentation/sign_up_steps.dart @@ -9,14 +9,14 @@ import 'package:flutter/material.dart'; import 'package:sf_localizations/sf_localizations.dart'; const Map documentType = { - 'dni': I18n.documentTypeDni, - 'nie': I18n.documentTypeNie, - 'passport': I18n.documentTypePassport, + 'DNI': I18n.documentTypeDni, + 'NIE': I18n.documentTypeNie, + 'PASSPORT': I18n.documentTypePassport, }; const Map relationship = { - 'father': I18n.relationshipFather, - 'mother': I18n.relationshipMother, - 'tutor': I18n.relationshipTutor, + 'FATHER': I18n.relationshipFather, + 'MOTHER': I18n.relationshipMother, + 'OTHER': I18n.relationshipTutor, }; List signUpSteps(BuildContext context) => [ @@ -138,7 +138,10 @@ List signUpSteps(BuildContext context) => [ birthCountryLabel: context.translate(I18n.birthCountryLabel), birthCountryHint: context.translate(I18n.birthCountryHint), onBirthCountryChanged: (CountryCode value) { - vm.setBirthCountryFromPicker(name: value.name ?? ''); + vm.setBirthCountryFromPicker( + name: value.name ?? '', + code: value.code ?? '', + ); }, streetLabel: context.translate(I18n.streetLabel), diff --git a/modules/auth/lib/src/features/sign_up/presentation/state/sign_up_view_model.dart b/modules/auth/lib/src/features/sign_up/presentation/state/sign_up_view_model.dart index 4722e0f3..23e9f96f 100644 --- a/modules/auth/lib/src/features/sign_up/presentation/state/sign_up_view_model.dart +++ b/modules/auth/lib/src/features/sign_up/presentation/state/sign_up_view_model.dart @@ -162,9 +162,9 @@ class SignUpViewModel extends Notifier { state = state.copyWith(dialCode: dialCode); } - void setBirthCountryFromPicker({required String name}) { + void setBirthCountryFromPicker({required String name, required String code}) { birthCountryController.text = name; - state = state.copyWith(birthCountry: name); + state = state.copyWith(birthCountry: name, birthCountryCode: code); } Future pickBornAt(BuildContext context) async { @@ -570,7 +570,8 @@ class SignUpViewModel extends Notifier { bornAt: bornAt.millisecondsSinceEpoch, userId: state.userId.trim(), placeOfBirth: state.placeOfBirth.trim(), - birthCountry: state.birthCountry.trim(), + birthCountry: state.birthCountryCode.trim(), + // birthCountry: 'spain', addresses: [_toAddressEntity(state.address)], taxResidences: [_toAddressEntity(state.address)], ); diff --git a/modules/auth/lib/src/features/sign_up/presentation/state/sign_up_view_state.dart b/modules/auth/lib/src/features/sign_up/presentation/state/sign_up_view_state.dart index 94653d45..27ac5778 100644 --- a/modules/auth/lib/src/features/sign_up/presentation/state/sign_up_view_state.dart +++ b/modules/auth/lib/src/features/sign_up/presentation/state/sign_up_view_state.dart @@ -27,6 +27,7 @@ abstract class SignUpViewState with _$SignUpViewState { @Default('') String userId, @Default('') String placeOfBirth, @Default('España') String birthCountry, + @Default('ES') String birthCountryCode, @Default(AddressViewState()) AddressViewState address, diff --git a/modules/auth/lib/src/features/sign_up/presentation/state/sign_up_view_state.freezed.dart b/modules/auth/lib/src/features/sign_up/presentation/state/sign_up_view_state.freezed.dart index 04e3356a..cf19d07c 100644 --- a/modules/auth/lib/src/features/sign_up/presentation/state/sign_up_view_state.freezed.dart +++ b/modules/auth/lib/src/features/sign_up/presentation/state/sign_up_view_state.freezed.dart @@ -14,7 +14,7 @@ T _$identity(T value) => value; /// @nodoc mixin _$SignUpViewState { - int get currentIndex; String get documentNumber; String get documentType; bool get acceptTerms; String get relationship; String get firstName; String get lastName; String get email; String get phone; String get dialCode; String get language; DateTime? get bornAt; String get password; String get repeatPassword; bool get isShowPassword; String get userId; String get placeOfBirth; String get birthCountry; AddressViewState get address; String get emailError; String get passwordError; String get phoneError; String get errorMessage; bool get isLoading; bool get showErrors; String get token; TwoFASecretEntity? get twoFASecret; String get otpCode; String get otpError; bool get isOtpLoading; bool get showAccountCreated; bool get showSecretCode; + int get currentIndex; String get documentNumber; String get documentType; bool get acceptTerms; String get relationship; String get firstName; String get lastName; String get email; String get phone; String get dialCode; String get language; DateTime? get bornAt; String get password; String get repeatPassword; bool get isShowPassword; String get userId; String get placeOfBirth; String get birthCountry; String get birthCountryCode; AddressViewState get address; String get emailError; String get passwordError; String get phoneError; String get errorMessage; bool get isLoading; bool get showErrors; String get token; TwoFASecretEntity? get twoFASecret; String get otpCode; String get otpError; bool get isOtpLoading; bool get showAccountCreated; bool get showSecretCode; /// Create a copy of SignUpViewState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -25,16 +25,16 @@ $SignUpViewStateCopyWith get copyWith => _$SignUpViewStateCopyW @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is SignUpViewState&&(identical(other.currentIndex, currentIndex) || other.currentIndex == currentIndex)&&(identical(other.documentNumber, documentNumber) || other.documentNumber == documentNumber)&&(identical(other.documentType, documentType) || other.documentType == documentType)&&(identical(other.acceptTerms, acceptTerms) || other.acceptTerms == acceptTerms)&&(identical(other.relationship, relationship) || other.relationship == relationship)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.email, email) || other.email == email)&&(identical(other.phone, phone) || other.phone == phone)&&(identical(other.dialCode, dialCode) || other.dialCode == dialCode)&&(identical(other.language, language) || other.language == language)&&(identical(other.bornAt, bornAt) || other.bornAt == bornAt)&&(identical(other.password, password) || other.password == password)&&(identical(other.repeatPassword, repeatPassword) || other.repeatPassword == repeatPassword)&&(identical(other.isShowPassword, isShowPassword) || other.isShowPassword == isShowPassword)&&(identical(other.userId, userId) || other.userId == userId)&&(identical(other.placeOfBirth, placeOfBirth) || other.placeOfBirth == placeOfBirth)&&(identical(other.birthCountry, birthCountry) || other.birthCountry == birthCountry)&&(identical(other.address, address) || other.address == address)&&(identical(other.emailError, emailError) || other.emailError == emailError)&&(identical(other.passwordError, passwordError) || other.passwordError == passwordError)&&(identical(other.phoneError, phoneError) || other.phoneError == phoneError)&&(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage)&&(identical(other.isLoading, isLoading) || other.isLoading == isLoading)&&(identical(other.showErrors, showErrors) || other.showErrors == showErrors)&&(identical(other.token, token) || other.token == token)&&(identical(other.twoFASecret, twoFASecret) || other.twoFASecret == twoFASecret)&&(identical(other.otpCode, otpCode) || other.otpCode == otpCode)&&(identical(other.otpError, otpError) || other.otpError == otpError)&&(identical(other.isOtpLoading, isOtpLoading) || other.isOtpLoading == isOtpLoading)&&(identical(other.showAccountCreated, showAccountCreated) || other.showAccountCreated == showAccountCreated)&&(identical(other.showSecretCode, showSecretCode) || other.showSecretCode == showSecretCode)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is SignUpViewState&&(identical(other.currentIndex, currentIndex) || other.currentIndex == currentIndex)&&(identical(other.documentNumber, documentNumber) || other.documentNumber == documentNumber)&&(identical(other.documentType, documentType) || other.documentType == documentType)&&(identical(other.acceptTerms, acceptTerms) || other.acceptTerms == acceptTerms)&&(identical(other.relationship, relationship) || other.relationship == relationship)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.email, email) || other.email == email)&&(identical(other.phone, phone) || other.phone == phone)&&(identical(other.dialCode, dialCode) || other.dialCode == dialCode)&&(identical(other.language, language) || other.language == language)&&(identical(other.bornAt, bornAt) || other.bornAt == bornAt)&&(identical(other.password, password) || other.password == password)&&(identical(other.repeatPassword, repeatPassword) || other.repeatPassword == repeatPassword)&&(identical(other.isShowPassword, isShowPassword) || other.isShowPassword == isShowPassword)&&(identical(other.userId, userId) || other.userId == userId)&&(identical(other.placeOfBirth, placeOfBirth) || other.placeOfBirth == placeOfBirth)&&(identical(other.birthCountry, birthCountry) || other.birthCountry == birthCountry)&&(identical(other.birthCountryCode, birthCountryCode) || other.birthCountryCode == birthCountryCode)&&(identical(other.address, address) || other.address == address)&&(identical(other.emailError, emailError) || other.emailError == emailError)&&(identical(other.passwordError, passwordError) || other.passwordError == passwordError)&&(identical(other.phoneError, phoneError) || other.phoneError == phoneError)&&(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage)&&(identical(other.isLoading, isLoading) || other.isLoading == isLoading)&&(identical(other.showErrors, showErrors) || other.showErrors == showErrors)&&(identical(other.token, token) || other.token == token)&&(identical(other.twoFASecret, twoFASecret) || other.twoFASecret == twoFASecret)&&(identical(other.otpCode, otpCode) || other.otpCode == otpCode)&&(identical(other.otpError, otpError) || other.otpError == otpError)&&(identical(other.isOtpLoading, isOtpLoading) || other.isOtpLoading == isOtpLoading)&&(identical(other.showAccountCreated, showAccountCreated) || other.showAccountCreated == showAccountCreated)&&(identical(other.showSecretCode, showSecretCode) || other.showSecretCode == showSecretCode)); } @override -int get hashCode => Object.hashAll([runtimeType,currentIndex,documentNumber,documentType,acceptTerms,relationship,firstName,lastName,email,phone,dialCode,language,bornAt,password,repeatPassword,isShowPassword,userId,placeOfBirth,birthCountry,address,emailError,passwordError,phoneError,errorMessage,isLoading,showErrors,token,twoFASecret,otpCode,otpError,isOtpLoading,showAccountCreated,showSecretCode]); +int get hashCode => Object.hashAll([runtimeType,currentIndex,documentNumber,documentType,acceptTerms,relationship,firstName,lastName,email,phone,dialCode,language,bornAt,password,repeatPassword,isShowPassword,userId,placeOfBirth,birthCountry,birthCountryCode,address,emailError,passwordError,phoneError,errorMessage,isLoading,showErrors,token,twoFASecret,otpCode,otpError,isOtpLoading,showAccountCreated,showSecretCode]); @override String toString() { - return 'SignUpViewState(currentIndex: $currentIndex, documentNumber: $documentNumber, documentType: $documentType, acceptTerms: $acceptTerms, relationship: $relationship, firstName: $firstName, lastName: $lastName, email: $email, phone: $phone, dialCode: $dialCode, language: $language, bornAt: $bornAt, password: $password, repeatPassword: $repeatPassword, isShowPassword: $isShowPassword, userId: $userId, placeOfBirth: $placeOfBirth, birthCountry: $birthCountry, address: $address, emailError: $emailError, passwordError: $passwordError, phoneError: $phoneError, errorMessage: $errorMessage, isLoading: $isLoading, showErrors: $showErrors, token: $token, twoFASecret: $twoFASecret, otpCode: $otpCode, otpError: $otpError, isOtpLoading: $isOtpLoading, showAccountCreated: $showAccountCreated, showSecretCode: $showSecretCode)'; + return 'SignUpViewState(currentIndex: $currentIndex, documentNumber: $documentNumber, documentType: $documentType, acceptTerms: $acceptTerms, relationship: $relationship, firstName: $firstName, lastName: $lastName, email: $email, phone: $phone, dialCode: $dialCode, language: $language, bornAt: $bornAt, password: $password, repeatPassword: $repeatPassword, isShowPassword: $isShowPassword, userId: $userId, placeOfBirth: $placeOfBirth, birthCountry: $birthCountry, birthCountryCode: $birthCountryCode, address: $address, emailError: $emailError, passwordError: $passwordError, phoneError: $phoneError, errorMessage: $errorMessage, isLoading: $isLoading, showErrors: $showErrors, token: $token, twoFASecret: $twoFASecret, otpCode: $otpCode, otpError: $otpError, isOtpLoading: $isOtpLoading, showAccountCreated: $showAccountCreated, showSecretCode: $showSecretCode)'; } @@ -45,7 +45,7 @@ abstract mixin class $SignUpViewStateCopyWith<$Res> { factory $SignUpViewStateCopyWith(SignUpViewState value, $Res Function(SignUpViewState) _then) = _$SignUpViewStateCopyWithImpl; @useResult $Res call({ - int currentIndex, String documentNumber, String documentType, bool acceptTerms, String relationship, String firstName, String lastName, String email, String phone, String dialCode, String language, DateTime? bornAt, String password, String repeatPassword, bool isShowPassword, String userId, String placeOfBirth, String birthCountry, AddressViewState address, String emailError, String passwordError, String phoneError, String errorMessage, bool isLoading, bool showErrors, String token, TwoFASecretEntity? twoFASecret, String otpCode, String otpError, bool isOtpLoading, bool showAccountCreated, bool showSecretCode + int currentIndex, String documentNumber, String documentType, bool acceptTerms, String relationship, String firstName, String lastName, String email, String phone, String dialCode, String language, DateTime? bornAt, String password, String repeatPassword, bool isShowPassword, String userId, String placeOfBirth, String birthCountry, String birthCountryCode, AddressViewState address, String emailError, String passwordError, String phoneError, String errorMessage, bool isLoading, bool showErrors, String token, TwoFASecretEntity? twoFASecret, String otpCode, String otpError, bool isOtpLoading, bool showAccountCreated, bool showSecretCode }); @@ -62,7 +62,7 @@ class _$SignUpViewStateCopyWithImpl<$Res> /// Create a copy of SignUpViewState /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? currentIndex = null,Object? documentNumber = null,Object? documentType = null,Object? acceptTerms = null,Object? relationship = null,Object? firstName = null,Object? lastName = null,Object? email = null,Object? phone = null,Object? dialCode = null,Object? language = null,Object? bornAt = freezed,Object? password = null,Object? repeatPassword = null,Object? isShowPassword = null,Object? userId = null,Object? placeOfBirth = null,Object? birthCountry = null,Object? address = null,Object? emailError = null,Object? passwordError = null,Object? phoneError = null,Object? errorMessage = null,Object? isLoading = null,Object? showErrors = null,Object? token = null,Object? twoFASecret = freezed,Object? otpCode = null,Object? otpError = null,Object? isOtpLoading = null,Object? showAccountCreated = null,Object? showSecretCode = null,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? currentIndex = null,Object? documentNumber = null,Object? documentType = null,Object? acceptTerms = null,Object? relationship = null,Object? firstName = null,Object? lastName = null,Object? email = null,Object? phone = null,Object? dialCode = null,Object? language = null,Object? bornAt = freezed,Object? password = null,Object? repeatPassword = null,Object? isShowPassword = null,Object? userId = null,Object? placeOfBirth = null,Object? birthCountry = null,Object? birthCountryCode = null,Object? address = null,Object? emailError = null,Object? passwordError = null,Object? phoneError = null,Object? errorMessage = null,Object? isLoading = null,Object? showErrors = null,Object? token = null,Object? twoFASecret = freezed,Object? otpCode = null,Object? otpError = null,Object? isOtpLoading = null,Object? showAccountCreated = null,Object? showSecretCode = null,}) { return _then(_self.copyWith( currentIndex: null == currentIndex ? _self.currentIndex : currentIndex // ignore: cast_nullable_to_non_nullable as int,documentNumber: null == documentNumber ? _self.documentNumber : documentNumber // ignore: cast_nullable_to_non_nullable @@ -82,6 +82,7 @@ as String,isShowPassword: null == isShowPassword ? _self.isShowPassword : isShow as bool,userId: null == userId ? _self.userId : userId // ignore: cast_nullable_to_non_nullable as String,placeOfBirth: null == placeOfBirth ? _self.placeOfBirth : placeOfBirth // ignore: cast_nullable_to_non_nullable as String,birthCountry: null == birthCountry ? _self.birthCountry : birthCountry // ignore: cast_nullable_to_non_nullable +as String,birthCountryCode: null == birthCountryCode ? _self.birthCountryCode : birthCountryCode // ignore: cast_nullable_to_non_nullable as String,address: null == address ? _self.address : address // ignore: cast_nullable_to_non_nullable as AddressViewState,emailError: null == emailError ? _self.emailError : emailError // ignore: cast_nullable_to_non_nullable as String,passwordError: null == passwordError ? _self.passwordError : passwordError // ignore: cast_nullable_to_non_nullable @@ -202,10 +203,10 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function( int currentIndex, String documentNumber, String documentType, bool acceptTerms, String relationship, String firstName, String lastName, String email, String phone, String dialCode, String language, DateTime? bornAt, String password, String repeatPassword, bool isShowPassword, String userId, String placeOfBirth, String birthCountry, AddressViewState address, String emailError, String passwordError, String phoneError, String errorMessage, bool isLoading, bool showErrors, String token, TwoFASecretEntity? twoFASecret, String otpCode, String otpError, bool isOtpLoading, bool showAccountCreated, bool showSecretCode)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function( int currentIndex, String documentNumber, String documentType, bool acceptTerms, String relationship, String firstName, String lastName, String email, String phone, String dialCode, String language, DateTime? bornAt, String password, String repeatPassword, bool isShowPassword, String userId, String placeOfBirth, String birthCountry, String birthCountryCode, AddressViewState address, String emailError, String passwordError, String phoneError, String errorMessage, bool isLoading, bool showErrors, String token, TwoFASecretEntity? twoFASecret, String otpCode, String otpError, bool isOtpLoading, bool showAccountCreated, bool showSecretCode)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _SignUpViewState() when $default != null: -return $default(_that.currentIndex,_that.documentNumber,_that.documentType,_that.acceptTerms,_that.relationship,_that.firstName,_that.lastName,_that.email,_that.phone,_that.dialCode,_that.language,_that.bornAt,_that.password,_that.repeatPassword,_that.isShowPassword,_that.userId,_that.placeOfBirth,_that.birthCountry,_that.address,_that.emailError,_that.passwordError,_that.phoneError,_that.errorMessage,_that.isLoading,_that.showErrors,_that.token,_that.twoFASecret,_that.otpCode,_that.otpError,_that.isOtpLoading,_that.showAccountCreated,_that.showSecretCode);case _: +return $default(_that.currentIndex,_that.documentNumber,_that.documentType,_that.acceptTerms,_that.relationship,_that.firstName,_that.lastName,_that.email,_that.phone,_that.dialCode,_that.language,_that.bornAt,_that.password,_that.repeatPassword,_that.isShowPassword,_that.userId,_that.placeOfBirth,_that.birthCountry,_that.birthCountryCode,_that.address,_that.emailError,_that.passwordError,_that.phoneError,_that.errorMessage,_that.isLoading,_that.showErrors,_that.token,_that.twoFASecret,_that.otpCode,_that.otpError,_that.isOtpLoading,_that.showAccountCreated,_that.showSecretCode);case _: return orElse(); } @@ -223,10 +224,10 @@ return $default(_that.currentIndex,_that.documentNumber,_that.documentType,_that /// } /// ``` -@optionalTypeArgs TResult when(TResult Function( int currentIndex, String documentNumber, String documentType, bool acceptTerms, String relationship, String firstName, String lastName, String email, String phone, String dialCode, String language, DateTime? bornAt, String password, String repeatPassword, bool isShowPassword, String userId, String placeOfBirth, String birthCountry, AddressViewState address, String emailError, String passwordError, String phoneError, String errorMessage, bool isLoading, bool showErrors, String token, TwoFASecretEntity? twoFASecret, String otpCode, String otpError, bool isOtpLoading, bool showAccountCreated, bool showSecretCode) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function( int currentIndex, String documentNumber, String documentType, bool acceptTerms, String relationship, String firstName, String lastName, String email, String phone, String dialCode, String language, DateTime? bornAt, String password, String repeatPassword, bool isShowPassword, String userId, String placeOfBirth, String birthCountry, String birthCountryCode, AddressViewState address, String emailError, String passwordError, String phoneError, String errorMessage, bool isLoading, bool showErrors, String token, TwoFASecretEntity? twoFASecret, String otpCode, String otpError, bool isOtpLoading, bool showAccountCreated, bool showSecretCode) $default,) {final _that = this; switch (_that) { case _SignUpViewState(): -return $default(_that.currentIndex,_that.documentNumber,_that.documentType,_that.acceptTerms,_that.relationship,_that.firstName,_that.lastName,_that.email,_that.phone,_that.dialCode,_that.language,_that.bornAt,_that.password,_that.repeatPassword,_that.isShowPassword,_that.userId,_that.placeOfBirth,_that.birthCountry,_that.address,_that.emailError,_that.passwordError,_that.phoneError,_that.errorMessage,_that.isLoading,_that.showErrors,_that.token,_that.twoFASecret,_that.otpCode,_that.otpError,_that.isOtpLoading,_that.showAccountCreated,_that.showSecretCode);case _: +return $default(_that.currentIndex,_that.documentNumber,_that.documentType,_that.acceptTerms,_that.relationship,_that.firstName,_that.lastName,_that.email,_that.phone,_that.dialCode,_that.language,_that.bornAt,_that.password,_that.repeatPassword,_that.isShowPassword,_that.userId,_that.placeOfBirth,_that.birthCountry,_that.birthCountryCode,_that.address,_that.emailError,_that.passwordError,_that.phoneError,_that.errorMessage,_that.isLoading,_that.showErrors,_that.token,_that.twoFASecret,_that.otpCode,_that.otpError,_that.isOtpLoading,_that.showAccountCreated,_that.showSecretCode);case _: throw StateError('Unexpected subclass'); } @@ -243,10 +244,10 @@ return $default(_that.currentIndex,_that.documentNumber,_that.documentType,_that /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function( int currentIndex, String documentNumber, String documentType, bool acceptTerms, String relationship, String firstName, String lastName, String email, String phone, String dialCode, String language, DateTime? bornAt, String password, String repeatPassword, bool isShowPassword, String userId, String placeOfBirth, String birthCountry, AddressViewState address, String emailError, String passwordError, String phoneError, String errorMessage, bool isLoading, bool showErrors, String token, TwoFASecretEntity? twoFASecret, String otpCode, String otpError, bool isOtpLoading, bool showAccountCreated, bool showSecretCode)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function( int currentIndex, String documentNumber, String documentType, bool acceptTerms, String relationship, String firstName, String lastName, String email, String phone, String dialCode, String language, DateTime? bornAt, String password, String repeatPassword, bool isShowPassword, String userId, String placeOfBirth, String birthCountry, String birthCountryCode, AddressViewState address, String emailError, String passwordError, String phoneError, String errorMessage, bool isLoading, bool showErrors, String token, TwoFASecretEntity? twoFASecret, String otpCode, String otpError, bool isOtpLoading, bool showAccountCreated, bool showSecretCode)? $default,) {final _that = this; switch (_that) { case _SignUpViewState() when $default != null: -return $default(_that.currentIndex,_that.documentNumber,_that.documentType,_that.acceptTerms,_that.relationship,_that.firstName,_that.lastName,_that.email,_that.phone,_that.dialCode,_that.language,_that.bornAt,_that.password,_that.repeatPassword,_that.isShowPassword,_that.userId,_that.placeOfBirth,_that.birthCountry,_that.address,_that.emailError,_that.passwordError,_that.phoneError,_that.errorMessage,_that.isLoading,_that.showErrors,_that.token,_that.twoFASecret,_that.otpCode,_that.otpError,_that.isOtpLoading,_that.showAccountCreated,_that.showSecretCode);case _: +return $default(_that.currentIndex,_that.documentNumber,_that.documentType,_that.acceptTerms,_that.relationship,_that.firstName,_that.lastName,_that.email,_that.phone,_that.dialCode,_that.language,_that.bornAt,_that.password,_that.repeatPassword,_that.isShowPassword,_that.userId,_that.placeOfBirth,_that.birthCountry,_that.birthCountryCode,_that.address,_that.emailError,_that.passwordError,_that.phoneError,_that.errorMessage,_that.isLoading,_that.showErrors,_that.token,_that.twoFASecret,_that.otpCode,_that.otpError,_that.isOtpLoading,_that.showAccountCreated,_that.showSecretCode);case _: return null; } @@ -258,7 +259,7 @@ return $default(_that.currentIndex,_that.documentNumber,_that.documentType,_that class _SignUpViewState implements SignUpViewState { - const _SignUpViewState({this.currentIndex = 0, this.documentNumber = '', this.documentType = '', this.acceptTerms = false, this.relationship = '', this.firstName = '', this.lastName = '', this.email = '', this.phone = '', this.dialCode = '+34', this.language = '', this.bornAt, this.password = '', this.repeatPassword = '', this.isShowPassword = false, this.userId = '', this.placeOfBirth = '', this.birthCountry = 'España', this.address = const AddressViewState(), this.emailError = '', this.passwordError = '', this.phoneError = '', this.errorMessage = '', this.isLoading = false, this.showErrors = false, this.token = '', this.twoFASecret, this.otpCode = '', this.otpError = '', this.isOtpLoading = false, this.showAccountCreated = false, this.showSecretCode = false}); + const _SignUpViewState({this.currentIndex = 0, this.documentNumber = '', this.documentType = '', this.acceptTerms = false, this.relationship = '', this.firstName = '', this.lastName = '', this.email = '', this.phone = '', this.dialCode = '+34', this.language = '', this.bornAt, this.password = '', this.repeatPassword = '', this.isShowPassword = false, this.userId = '', this.placeOfBirth = '', this.birthCountry = 'España', this.birthCountryCode = 'ES', this.address = const AddressViewState(), this.emailError = '', this.passwordError = '', this.phoneError = '', this.errorMessage = '', this.isLoading = false, this.showErrors = false, this.token = '', this.twoFASecret, this.otpCode = '', this.otpError = '', this.isOtpLoading = false, this.showAccountCreated = false, this.showSecretCode = false}); @override@JsonKey() final int currentIndex; @@ -279,6 +280,7 @@ class _SignUpViewState implements SignUpViewState { @override@JsonKey() final String userId; @override@JsonKey() final String placeOfBirth; @override@JsonKey() final String birthCountry; +@override@JsonKey() final String birthCountryCode; @override@JsonKey() final AddressViewState address; @override@JsonKey() final String emailError; @override@JsonKey() final String passwordError; @@ -304,16 +306,16 @@ _$SignUpViewStateCopyWith<_SignUpViewState> get copyWith => __$SignUpViewStateCo @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _SignUpViewState&&(identical(other.currentIndex, currentIndex) || other.currentIndex == currentIndex)&&(identical(other.documentNumber, documentNumber) || other.documentNumber == documentNumber)&&(identical(other.documentType, documentType) || other.documentType == documentType)&&(identical(other.acceptTerms, acceptTerms) || other.acceptTerms == acceptTerms)&&(identical(other.relationship, relationship) || other.relationship == relationship)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.email, email) || other.email == email)&&(identical(other.phone, phone) || other.phone == phone)&&(identical(other.dialCode, dialCode) || other.dialCode == dialCode)&&(identical(other.language, language) || other.language == language)&&(identical(other.bornAt, bornAt) || other.bornAt == bornAt)&&(identical(other.password, password) || other.password == password)&&(identical(other.repeatPassword, repeatPassword) || other.repeatPassword == repeatPassword)&&(identical(other.isShowPassword, isShowPassword) || other.isShowPassword == isShowPassword)&&(identical(other.userId, userId) || other.userId == userId)&&(identical(other.placeOfBirth, placeOfBirth) || other.placeOfBirth == placeOfBirth)&&(identical(other.birthCountry, birthCountry) || other.birthCountry == birthCountry)&&(identical(other.address, address) || other.address == address)&&(identical(other.emailError, emailError) || other.emailError == emailError)&&(identical(other.passwordError, passwordError) || other.passwordError == passwordError)&&(identical(other.phoneError, phoneError) || other.phoneError == phoneError)&&(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage)&&(identical(other.isLoading, isLoading) || other.isLoading == isLoading)&&(identical(other.showErrors, showErrors) || other.showErrors == showErrors)&&(identical(other.token, token) || other.token == token)&&(identical(other.twoFASecret, twoFASecret) || other.twoFASecret == twoFASecret)&&(identical(other.otpCode, otpCode) || other.otpCode == otpCode)&&(identical(other.otpError, otpError) || other.otpError == otpError)&&(identical(other.isOtpLoading, isOtpLoading) || other.isOtpLoading == isOtpLoading)&&(identical(other.showAccountCreated, showAccountCreated) || other.showAccountCreated == showAccountCreated)&&(identical(other.showSecretCode, showSecretCode) || other.showSecretCode == showSecretCode)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _SignUpViewState&&(identical(other.currentIndex, currentIndex) || other.currentIndex == currentIndex)&&(identical(other.documentNumber, documentNumber) || other.documentNumber == documentNumber)&&(identical(other.documentType, documentType) || other.documentType == documentType)&&(identical(other.acceptTerms, acceptTerms) || other.acceptTerms == acceptTerms)&&(identical(other.relationship, relationship) || other.relationship == relationship)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.email, email) || other.email == email)&&(identical(other.phone, phone) || other.phone == phone)&&(identical(other.dialCode, dialCode) || other.dialCode == dialCode)&&(identical(other.language, language) || other.language == language)&&(identical(other.bornAt, bornAt) || other.bornAt == bornAt)&&(identical(other.password, password) || other.password == password)&&(identical(other.repeatPassword, repeatPassword) || other.repeatPassword == repeatPassword)&&(identical(other.isShowPassword, isShowPassword) || other.isShowPassword == isShowPassword)&&(identical(other.userId, userId) || other.userId == userId)&&(identical(other.placeOfBirth, placeOfBirth) || other.placeOfBirth == placeOfBirth)&&(identical(other.birthCountry, birthCountry) || other.birthCountry == birthCountry)&&(identical(other.birthCountryCode, birthCountryCode) || other.birthCountryCode == birthCountryCode)&&(identical(other.address, address) || other.address == address)&&(identical(other.emailError, emailError) || other.emailError == emailError)&&(identical(other.passwordError, passwordError) || other.passwordError == passwordError)&&(identical(other.phoneError, phoneError) || other.phoneError == phoneError)&&(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage)&&(identical(other.isLoading, isLoading) || other.isLoading == isLoading)&&(identical(other.showErrors, showErrors) || other.showErrors == showErrors)&&(identical(other.token, token) || other.token == token)&&(identical(other.twoFASecret, twoFASecret) || other.twoFASecret == twoFASecret)&&(identical(other.otpCode, otpCode) || other.otpCode == otpCode)&&(identical(other.otpError, otpError) || other.otpError == otpError)&&(identical(other.isOtpLoading, isOtpLoading) || other.isOtpLoading == isOtpLoading)&&(identical(other.showAccountCreated, showAccountCreated) || other.showAccountCreated == showAccountCreated)&&(identical(other.showSecretCode, showSecretCode) || other.showSecretCode == showSecretCode)); } @override -int get hashCode => Object.hashAll([runtimeType,currentIndex,documentNumber,documentType,acceptTerms,relationship,firstName,lastName,email,phone,dialCode,language,bornAt,password,repeatPassword,isShowPassword,userId,placeOfBirth,birthCountry,address,emailError,passwordError,phoneError,errorMessage,isLoading,showErrors,token,twoFASecret,otpCode,otpError,isOtpLoading,showAccountCreated,showSecretCode]); +int get hashCode => Object.hashAll([runtimeType,currentIndex,documentNumber,documentType,acceptTerms,relationship,firstName,lastName,email,phone,dialCode,language,bornAt,password,repeatPassword,isShowPassword,userId,placeOfBirth,birthCountry,birthCountryCode,address,emailError,passwordError,phoneError,errorMessage,isLoading,showErrors,token,twoFASecret,otpCode,otpError,isOtpLoading,showAccountCreated,showSecretCode]); @override String toString() { - return 'SignUpViewState(currentIndex: $currentIndex, documentNumber: $documentNumber, documentType: $documentType, acceptTerms: $acceptTerms, relationship: $relationship, firstName: $firstName, lastName: $lastName, email: $email, phone: $phone, dialCode: $dialCode, language: $language, bornAt: $bornAt, password: $password, repeatPassword: $repeatPassword, isShowPassword: $isShowPassword, userId: $userId, placeOfBirth: $placeOfBirth, birthCountry: $birthCountry, address: $address, emailError: $emailError, passwordError: $passwordError, phoneError: $phoneError, errorMessage: $errorMessage, isLoading: $isLoading, showErrors: $showErrors, token: $token, twoFASecret: $twoFASecret, otpCode: $otpCode, otpError: $otpError, isOtpLoading: $isOtpLoading, showAccountCreated: $showAccountCreated, showSecretCode: $showSecretCode)'; + return 'SignUpViewState(currentIndex: $currentIndex, documentNumber: $documentNumber, documentType: $documentType, acceptTerms: $acceptTerms, relationship: $relationship, firstName: $firstName, lastName: $lastName, email: $email, phone: $phone, dialCode: $dialCode, language: $language, bornAt: $bornAt, password: $password, repeatPassword: $repeatPassword, isShowPassword: $isShowPassword, userId: $userId, placeOfBirth: $placeOfBirth, birthCountry: $birthCountry, birthCountryCode: $birthCountryCode, address: $address, emailError: $emailError, passwordError: $passwordError, phoneError: $phoneError, errorMessage: $errorMessage, isLoading: $isLoading, showErrors: $showErrors, token: $token, twoFASecret: $twoFASecret, otpCode: $otpCode, otpError: $otpError, isOtpLoading: $isOtpLoading, showAccountCreated: $showAccountCreated, showSecretCode: $showSecretCode)'; } @@ -324,7 +326,7 @@ abstract mixin class _$SignUpViewStateCopyWith<$Res> implements $SignUpViewState factory _$SignUpViewStateCopyWith(_SignUpViewState value, $Res Function(_SignUpViewState) _then) = __$SignUpViewStateCopyWithImpl; @override @useResult $Res call({ - int currentIndex, String documentNumber, String documentType, bool acceptTerms, String relationship, String firstName, String lastName, String email, String phone, String dialCode, String language, DateTime? bornAt, String password, String repeatPassword, bool isShowPassword, String userId, String placeOfBirth, String birthCountry, AddressViewState address, String emailError, String passwordError, String phoneError, String errorMessage, bool isLoading, bool showErrors, String token, TwoFASecretEntity? twoFASecret, String otpCode, String otpError, bool isOtpLoading, bool showAccountCreated, bool showSecretCode + int currentIndex, String documentNumber, String documentType, bool acceptTerms, String relationship, String firstName, String lastName, String email, String phone, String dialCode, String language, DateTime? bornAt, String password, String repeatPassword, bool isShowPassword, String userId, String placeOfBirth, String birthCountry, String birthCountryCode, AddressViewState address, String emailError, String passwordError, String phoneError, String errorMessage, bool isLoading, bool showErrors, String token, TwoFASecretEntity? twoFASecret, String otpCode, String otpError, bool isOtpLoading, bool showAccountCreated, bool showSecretCode }); @@ -341,7 +343,7 @@ class __$SignUpViewStateCopyWithImpl<$Res> /// Create a copy of SignUpViewState /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? currentIndex = null,Object? documentNumber = null,Object? documentType = null,Object? acceptTerms = null,Object? relationship = null,Object? firstName = null,Object? lastName = null,Object? email = null,Object? phone = null,Object? dialCode = null,Object? language = null,Object? bornAt = freezed,Object? password = null,Object? repeatPassword = null,Object? isShowPassword = null,Object? userId = null,Object? placeOfBirth = null,Object? birthCountry = null,Object? address = null,Object? emailError = null,Object? passwordError = null,Object? phoneError = null,Object? errorMessage = null,Object? isLoading = null,Object? showErrors = null,Object? token = null,Object? twoFASecret = freezed,Object? otpCode = null,Object? otpError = null,Object? isOtpLoading = null,Object? showAccountCreated = null,Object? showSecretCode = null,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? currentIndex = null,Object? documentNumber = null,Object? documentType = null,Object? acceptTerms = null,Object? relationship = null,Object? firstName = null,Object? lastName = null,Object? email = null,Object? phone = null,Object? dialCode = null,Object? language = null,Object? bornAt = freezed,Object? password = null,Object? repeatPassword = null,Object? isShowPassword = null,Object? userId = null,Object? placeOfBirth = null,Object? birthCountry = null,Object? birthCountryCode = null,Object? address = null,Object? emailError = null,Object? passwordError = null,Object? phoneError = null,Object? errorMessage = null,Object? isLoading = null,Object? showErrors = null,Object? token = null,Object? twoFASecret = freezed,Object? otpCode = null,Object? otpError = null,Object? isOtpLoading = null,Object? showAccountCreated = null,Object? showSecretCode = null,}) { return _then(_SignUpViewState( currentIndex: null == currentIndex ? _self.currentIndex : currentIndex // ignore: cast_nullable_to_non_nullable as int,documentNumber: null == documentNumber ? _self.documentNumber : documentNumber // ignore: cast_nullable_to_non_nullable @@ -361,6 +363,7 @@ as String,isShowPassword: null == isShowPassword ? _self.isShowPassword : isShow as bool,userId: null == userId ? _self.userId : userId // ignore: cast_nullable_to_non_nullable as String,placeOfBirth: null == placeOfBirth ? _self.placeOfBirth : placeOfBirth // ignore: cast_nullable_to_non_nullable as String,birthCountry: null == birthCountry ? _self.birthCountry : birthCountry // ignore: cast_nullable_to_non_nullable +as String,birthCountryCode: null == birthCountryCode ? _self.birthCountryCode : birthCountryCode // ignore: cast_nullable_to_non_nullable as String,address: null == address ? _self.address : address // ignore: cast_nullable_to_non_nullable as AddressViewState,emailError: null == emailError ? _self.emailError : emailError // ignore: cast_nullable_to_non_nullable as String,passwordError: null == passwordError ? _self.passwordError : passwordError // ignore: cast_nullable_to_non_nullable diff --git a/packages/sf_localizations/assets/l10n/de.json b/packages/sf_localizations/assets/l10n/de.json index 914c8fd8..ae096950 100644 --- a/packages/sf_localizations/assets/l10n/de.json +++ b/packages/sf_localizations/assets/l10n/de.json @@ -71,9 +71,6 @@ "relationshipTutor": "Erziehungsberechtigter", "addressCountryLabel": "Land (Adresse)", "addressCountryHint": "Land", - "countrySpain": "Spanien", - "countryFrance": "Frankreich", - "countryPortugal": "Portugal", "birthDateLabel": "Geburtsdatum", "birthDateHint": "TT/MM/JJJJ", "placeOfBirthLabel": "Geburtsort", diff --git a/packages/sf_localizations/assets/l10n/en.json b/packages/sf_localizations/assets/l10n/en.json index 68d3b66d..c90eb3f3 100755 --- a/packages/sf_localizations/assets/l10n/en.json +++ b/packages/sf_localizations/assets/l10n/en.json @@ -71,9 +71,6 @@ "relationshipTutor": "Legal guardian", "addressCountryLabel": "Country (address)", "addressCountryHint": "Country", - "countrySpain": "Spain", - "countryFrance": "France", - "countryPortugal": "Portugal", "birthDateLabel": "Date of birth", "birthDateHint": "DD/MM/YYYY", "placeOfBirthLabel": "Place of birth", diff --git a/packages/sf_localizations/assets/l10n/es.json b/packages/sf_localizations/assets/l10n/es.json index ff87df9a..12fa5485 100644 --- a/packages/sf_localizations/assets/l10n/es.json +++ b/packages/sf_localizations/assets/l10n/es.json @@ -18,7 +18,7 @@ "connect": "Conéctate", "verificationCodeSentTo": "Hemos enviado el código al ", "enterCodeHere": "Introduce el código aquí", - "enter": "enter", + "enter": "entrar", "didNotReceiveIt": "¿No lo has recibido?", "tryAgain": "Volver a intentarlo", "welcome": "¡Te damos la bienvenida!", @@ -71,9 +71,6 @@ "relationshipTutor": "Tutor/a legal", "addressCountryLabel": "País (dirección)", "addressCountryHint": "País", - "countrySpain": "España", - "countryFrance": "Francia", - "countryPortugal": "Portugal", "birthDateLabel": "Fecha de nacimiento", "birthDateHint": "DD/MM/AAAA", "placeOfBirthLabel": "Lugar de nacimiento", diff --git a/packages/sf_localizations/assets/l10n/fr.json b/packages/sf_localizations/assets/l10n/fr.json index e70cae3c..a5e7eb4a 100644 --- a/packages/sf_localizations/assets/l10n/fr.json +++ b/packages/sf_localizations/assets/l10n/fr.json @@ -71,9 +71,6 @@ "relationshipTutor": "Tuteur légal", "addressCountryLabel": "Pays (adresse)", "addressCountryHint": "Pays", - "countrySpain": "Espagne", - "countryFrance": "France", - "countryPortugal": "Portugal", "birthDateLabel": "Date de naissance", "birthDateHint": "JJ/MM/AAAA", "placeOfBirthLabel": "Lieu de naissance", diff --git a/packages/sf_localizations/assets/l10n/it.json b/packages/sf_localizations/assets/l10n/it.json index 29637575..aa9feb2f 100644 --- a/packages/sf_localizations/assets/l10n/it.json +++ b/packages/sf_localizations/assets/l10n/it.json @@ -71,9 +71,6 @@ "relationshipTutor": "Tutore legale", "addressCountryLabel": "Paese (indirizzo)", "addressCountryHint": "Paese", - "countrySpain": "Spagna", - "countryFrance": "Francia", - "countryPortugal": "Portogallo", "birthDateLabel": "Data di nascita", "birthDateHint": "GG/MM/AAAA", "placeOfBirthLabel": "Luogo di nascita", diff --git a/packages/sf_localizations/assets/l10n/pt.json b/packages/sf_localizations/assets/l10n/pt.json index a52a0d36..f34625da 100644 --- a/packages/sf_localizations/assets/l10n/pt.json +++ b/packages/sf_localizations/assets/l10n/pt.json @@ -71,9 +71,6 @@ "relationshipTutor": "Tutor legal", "addressCountryLabel": "País (morada)", "addressCountryHint": "País", - "countrySpain": "Espanha", - "countryFrance": "França", - "countryPortugal": "Portugal", "birthDateLabel": "Data de nascimento", "birthDateHint": "DD/MM/AAAA", "placeOfBirthLabel": "Local de nascimento", diff --git a/packages/sf_localizations/lib/src/generated/i18n.dart b/packages/sf_localizations/lib/src/generated/i18n.dart index cd64d37a..643f6ed2 100755 --- a/packages/sf_localizations/lib/src/generated/i18n.dart +++ b/packages/sf_localizations/lib/src/generated/i18n.dart @@ -84,9 +84,6 @@ class I18n { static const String addressCountryLabel = 'addressCountryLabel'; static const String addressCountryHint = 'addressCountryHint'; - static const String countrySpain = 'countrySpain'; - static const String countryFrance = 'countryFrance'; - static const String countryPortugal = 'countryPortugal'; static const String birthDateLabel = 'birthDateLabel'; static const String birthDateHint = 'birthDateHint';