|
@@ -0,0 +1,691 @@
|
|
|
+// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
+// 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
|
|
|
+
|
|
|
+part of 'sign_up_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 informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+class _$SignUpEventTearOff {
|
|
|
+ const _$SignUpEventTearOff();
|
|
|
+
|
|
|
+ SignUpWithUserEmailAndPassword signUpWithUserEmailAndPassword() {
|
|
|
+ return const SignUpWithUserEmailAndPassword();
|
|
|
+ }
|
|
|
+
|
|
|
+ EmailChanged emailChanged(String email) {
|
|
|
+ return EmailChanged(
|
|
|
+ email,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ PasswordChanged passwordChanged(String password) {
|
|
|
+ return PasswordChanged(
|
|
|
+ password,
|
|
|
+ );
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+const $SignUpEvent = _$SignUpEventTearOff();
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+mixin _$SignUpEvent {
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult when<TResult extends Object?>({
|
|
|
+ required TResult Function() signUpWithUserEmailAndPassword,
|
|
|
+ required TResult Function(String email) emailChanged,
|
|
|
+ required TResult Function(String password) passwordChanged,
|
|
|
+ }) =>
|
|
|
+ throw _privateConstructorUsedError;
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult maybeWhen<TResult extends Object?>({
|
|
|
+ TResult Function()? signUpWithUserEmailAndPassword,
|
|
|
+ TResult Function(String email)? emailChanged,
|
|
|
+ TResult Function(String password)? passwordChanged,
|
|
|
+ required TResult orElse(),
|
|
|
+ }) =>
|
|
|
+ throw _privateConstructorUsedError;
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult map<TResult extends Object?>({
|
|
|
+ required TResult Function(SignUpWithUserEmailAndPassword value)
|
|
|
+ signUpWithUserEmailAndPassword,
|
|
|
+ required TResult Function(EmailChanged value) emailChanged,
|
|
|
+ required TResult Function(PasswordChanged value) passwordChanged,
|
|
|
+ }) =>
|
|
|
+ throw _privateConstructorUsedError;
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult maybeMap<TResult extends Object?>({
|
|
|
+ TResult Function(SignUpWithUserEmailAndPassword value)?
|
|
|
+ signUpWithUserEmailAndPassword,
|
|
|
+ TResult Function(EmailChanged value)? emailChanged,
|
|
|
+ TResult Function(PasswordChanged value)? passwordChanged,
|
|
|
+ required TResult orElse(),
|
|
|
+ }) =>
|
|
|
+ throw _privateConstructorUsedError;
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+abstract class $SignUpEventCopyWith<$Res> {
|
|
|
+ factory $SignUpEventCopyWith(
|
|
|
+ SignUpEvent value, $Res Function(SignUpEvent) then) =
|
|
|
+ _$SignUpEventCopyWithImpl<$Res>;
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+class _$SignUpEventCopyWithImpl<$Res> implements $SignUpEventCopyWith<$Res> {
|
|
|
+ _$SignUpEventCopyWithImpl(this._value, this._then);
|
|
|
+
|
|
|
+ final SignUpEvent _value;
|
|
|
+ // ignore: unused_field
|
|
|
+ final $Res Function(SignUpEvent) _then;
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+abstract class $SignUpWithUserEmailAndPasswordCopyWith<$Res> {
|
|
|
+ factory $SignUpWithUserEmailAndPasswordCopyWith(
|
|
|
+ SignUpWithUserEmailAndPassword value,
|
|
|
+ $Res Function(SignUpWithUserEmailAndPassword) then) =
|
|
|
+ _$SignUpWithUserEmailAndPasswordCopyWithImpl<$Res>;
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+class _$SignUpWithUserEmailAndPasswordCopyWithImpl<$Res>
|
|
|
+ extends _$SignUpEventCopyWithImpl<$Res>
|
|
|
+ implements $SignUpWithUserEmailAndPasswordCopyWith<$Res> {
|
|
|
+ _$SignUpWithUserEmailAndPasswordCopyWithImpl(
|
|
|
+ SignUpWithUserEmailAndPassword _value,
|
|
|
+ $Res Function(SignUpWithUserEmailAndPassword) _then)
|
|
|
+ : super(_value, (v) => _then(v as SignUpWithUserEmailAndPassword));
|
|
|
+
|
|
|
+ @override
|
|
|
+ SignUpWithUserEmailAndPassword get _value =>
|
|
|
+ super._value as SignUpWithUserEmailAndPassword;
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+
|
|
|
+class _$SignUpWithUserEmailAndPassword
|
|
|
+ implements SignUpWithUserEmailAndPassword {
|
|
|
+ const _$SignUpWithUserEmailAndPassword();
|
|
|
+
|
|
|
+ @override
|
|
|
+ String toString() {
|
|
|
+ return 'SignUpEvent.signUpWithUserEmailAndPassword()';
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ bool operator ==(dynamic other) {
|
|
|
+ return identical(this, other) || (other is SignUpWithUserEmailAndPassword);
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ int get hashCode => runtimeType.hashCode;
|
|
|
+
|
|
|
+ @override
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult when<TResult extends Object?>({
|
|
|
+ required TResult Function() signUpWithUserEmailAndPassword,
|
|
|
+ required TResult Function(String email) emailChanged,
|
|
|
+ required TResult Function(String password) passwordChanged,
|
|
|
+ }) {
|
|
|
+ return signUpWithUserEmailAndPassword();
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult maybeWhen<TResult extends Object?>({
|
|
|
+ TResult Function()? signUpWithUserEmailAndPassword,
|
|
|
+ TResult Function(String email)? emailChanged,
|
|
|
+ TResult Function(String password)? passwordChanged,
|
|
|
+ required TResult orElse(),
|
|
|
+ }) {
|
|
|
+ if (signUpWithUserEmailAndPassword != null) {
|
|
|
+ return signUpWithUserEmailAndPassword();
|
|
|
+ }
|
|
|
+ return orElse();
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult map<TResult extends Object?>({
|
|
|
+ required TResult Function(SignUpWithUserEmailAndPassword value)
|
|
|
+ signUpWithUserEmailAndPassword,
|
|
|
+ required TResult Function(EmailChanged value) emailChanged,
|
|
|
+ required TResult Function(PasswordChanged value) passwordChanged,
|
|
|
+ }) {
|
|
|
+ return signUpWithUserEmailAndPassword(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult maybeMap<TResult extends Object?>({
|
|
|
+ TResult Function(SignUpWithUserEmailAndPassword value)?
|
|
|
+ signUpWithUserEmailAndPassword,
|
|
|
+ TResult Function(EmailChanged value)? emailChanged,
|
|
|
+ TResult Function(PasswordChanged value)? passwordChanged,
|
|
|
+ required TResult orElse(),
|
|
|
+ }) {
|
|
|
+ if (signUpWithUserEmailAndPassword != null) {
|
|
|
+ return signUpWithUserEmailAndPassword(this);
|
|
|
+ }
|
|
|
+ return orElse();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+abstract class SignUpWithUserEmailAndPassword implements SignUpEvent {
|
|
|
+ const factory SignUpWithUserEmailAndPassword() =
|
|
|
+ _$SignUpWithUserEmailAndPassword;
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+abstract class $EmailChangedCopyWith<$Res> {
|
|
|
+ factory $EmailChangedCopyWith(
|
|
|
+ EmailChanged value, $Res Function(EmailChanged) then) =
|
|
|
+ _$EmailChangedCopyWithImpl<$Res>;
|
|
|
+ $Res call({String email});
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+class _$EmailChangedCopyWithImpl<$Res> extends _$SignUpEventCopyWithImpl<$Res>
|
|
|
+ implements $EmailChangedCopyWith<$Res> {
|
|
|
+ _$EmailChangedCopyWithImpl(
|
|
|
+ EmailChanged _value, $Res Function(EmailChanged) _then)
|
|
|
+ : super(_value, (v) => _then(v as EmailChanged));
|
|
|
+
|
|
|
+ @override
|
|
|
+ EmailChanged get _value => super._value as EmailChanged;
|
|
|
+
|
|
|
+ @override
|
|
|
+ $Res call({
|
|
|
+ Object? email = freezed,
|
|
|
+ }) {
|
|
|
+ return _then(EmailChanged(
|
|
|
+ email == freezed
|
|
|
+ ? _value.email
|
|
|
+ : email // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String,
|
|
|
+ ));
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+
|
|
|
+class _$EmailChanged implements EmailChanged {
|
|
|
+ const _$EmailChanged(this.email);
|
|
|
+
|
|
|
+ @override
|
|
|
+ final String email;
|
|
|
+
|
|
|
+ @override
|
|
|
+ String toString() {
|
|
|
+ return 'SignUpEvent.emailChanged(email: $email)';
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ bool operator ==(dynamic other) {
|
|
|
+ return identical(this, other) ||
|
|
|
+ (other is EmailChanged &&
|
|
|
+ (identical(other.email, email) ||
|
|
|
+ const DeepCollectionEquality().equals(other.email, email)));
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ int get hashCode =>
|
|
|
+ runtimeType.hashCode ^ const DeepCollectionEquality().hash(email);
|
|
|
+
|
|
|
+ @JsonKey(ignore: true)
|
|
|
+ @override
|
|
|
+ $EmailChangedCopyWith<EmailChanged> get copyWith =>
|
|
|
+ _$EmailChangedCopyWithImpl<EmailChanged>(this, _$identity);
|
|
|
+
|
|
|
+ @override
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult when<TResult extends Object?>({
|
|
|
+ required TResult Function() signUpWithUserEmailAndPassword,
|
|
|
+ required TResult Function(String email) emailChanged,
|
|
|
+ required TResult Function(String password) passwordChanged,
|
|
|
+ }) {
|
|
|
+ return emailChanged(email);
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult maybeWhen<TResult extends Object?>({
|
|
|
+ TResult Function()? signUpWithUserEmailAndPassword,
|
|
|
+ TResult Function(String email)? emailChanged,
|
|
|
+ TResult Function(String password)? passwordChanged,
|
|
|
+ required TResult orElse(),
|
|
|
+ }) {
|
|
|
+ if (emailChanged != null) {
|
|
|
+ return emailChanged(email);
|
|
|
+ }
|
|
|
+ return orElse();
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult map<TResult extends Object?>({
|
|
|
+ required TResult Function(SignUpWithUserEmailAndPassword value)
|
|
|
+ signUpWithUserEmailAndPassword,
|
|
|
+ required TResult Function(EmailChanged value) emailChanged,
|
|
|
+ required TResult Function(PasswordChanged value) passwordChanged,
|
|
|
+ }) {
|
|
|
+ return emailChanged(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult maybeMap<TResult extends Object?>({
|
|
|
+ TResult Function(SignUpWithUserEmailAndPassword value)?
|
|
|
+ signUpWithUserEmailAndPassword,
|
|
|
+ TResult Function(EmailChanged value)? emailChanged,
|
|
|
+ TResult Function(PasswordChanged value)? passwordChanged,
|
|
|
+ required TResult orElse(),
|
|
|
+ }) {
|
|
|
+ if (emailChanged != null) {
|
|
|
+ return emailChanged(this);
|
|
|
+ }
|
|
|
+ return orElse();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+abstract class EmailChanged implements SignUpEvent {
|
|
|
+ const factory EmailChanged(String email) = _$EmailChanged;
|
|
|
+
|
|
|
+ String get email => throw _privateConstructorUsedError;
|
|
|
+ @JsonKey(ignore: true)
|
|
|
+ $EmailChangedCopyWith<EmailChanged> get copyWith =>
|
|
|
+ throw _privateConstructorUsedError;
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+abstract class $PasswordChangedCopyWith<$Res> {
|
|
|
+ factory $PasswordChangedCopyWith(
|
|
|
+ PasswordChanged value, $Res Function(PasswordChanged) then) =
|
|
|
+ _$PasswordChangedCopyWithImpl<$Res>;
|
|
|
+ $Res call({String password});
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+class _$PasswordChangedCopyWithImpl<$Res>
|
|
|
+ extends _$SignUpEventCopyWithImpl<$Res>
|
|
|
+ implements $PasswordChangedCopyWith<$Res> {
|
|
|
+ _$PasswordChangedCopyWithImpl(
|
|
|
+ PasswordChanged _value, $Res Function(PasswordChanged) _then)
|
|
|
+ : super(_value, (v) => _then(v as PasswordChanged));
|
|
|
+
|
|
|
+ @override
|
|
|
+ PasswordChanged get _value => super._value as PasswordChanged;
|
|
|
+
|
|
|
+ @override
|
|
|
+ $Res call({
|
|
|
+ Object? password = freezed,
|
|
|
+ }) {
|
|
|
+ return _then(PasswordChanged(
|
|
|
+ password == freezed
|
|
|
+ ? _value.password
|
|
|
+ : password // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String,
|
|
|
+ ));
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+
|
|
|
+class _$PasswordChanged implements PasswordChanged {
|
|
|
+ const _$PasswordChanged(this.password);
|
|
|
+
|
|
|
+ @override
|
|
|
+ final String password;
|
|
|
+
|
|
|
+ @override
|
|
|
+ String toString() {
|
|
|
+ return 'SignUpEvent.passwordChanged(password: $password)';
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ bool operator ==(dynamic other) {
|
|
|
+ return identical(this, other) ||
|
|
|
+ (other is PasswordChanged &&
|
|
|
+ (identical(other.password, password) ||
|
|
|
+ const DeepCollectionEquality()
|
|
|
+ .equals(other.password, password)));
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ int get hashCode =>
|
|
|
+ runtimeType.hashCode ^ const DeepCollectionEquality().hash(password);
|
|
|
+
|
|
|
+ @JsonKey(ignore: true)
|
|
|
+ @override
|
|
|
+ $PasswordChangedCopyWith<PasswordChanged> get copyWith =>
|
|
|
+ _$PasswordChangedCopyWithImpl<PasswordChanged>(this, _$identity);
|
|
|
+
|
|
|
+ @override
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult when<TResult extends Object?>({
|
|
|
+ required TResult Function() signUpWithUserEmailAndPassword,
|
|
|
+ required TResult Function(String email) emailChanged,
|
|
|
+ required TResult Function(String password) passwordChanged,
|
|
|
+ }) {
|
|
|
+ return passwordChanged(password);
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult maybeWhen<TResult extends Object?>({
|
|
|
+ TResult Function()? signUpWithUserEmailAndPassword,
|
|
|
+ TResult Function(String email)? emailChanged,
|
|
|
+ TResult Function(String password)? passwordChanged,
|
|
|
+ required TResult orElse(),
|
|
|
+ }) {
|
|
|
+ if (passwordChanged != null) {
|
|
|
+ return passwordChanged(password);
|
|
|
+ }
|
|
|
+ return orElse();
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult map<TResult extends Object?>({
|
|
|
+ required TResult Function(SignUpWithUserEmailAndPassword value)
|
|
|
+ signUpWithUserEmailAndPassword,
|
|
|
+ required TResult Function(EmailChanged value) emailChanged,
|
|
|
+ required TResult Function(PasswordChanged value) passwordChanged,
|
|
|
+ }) {
|
|
|
+ return passwordChanged(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ @optionalTypeArgs
|
|
|
+ TResult maybeMap<TResult extends Object?>({
|
|
|
+ TResult Function(SignUpWithUserEmailAndPassword value)?
|
|
|
+ signUpWithUserEmailAndPassword,
|
|
|
+ TResult Function(EmailChanged value)? emailChanged,
|
|
|
+ TResult Function(PasswordChanged value)? passwordChanged,
|
|
|
+ required TResult orElse(),
|
|
|
+ }) {
|
|
|
+ if (passwordChanged != null) {
|
|
|
+ return passwordChanged(this);
|
|
|
+ }
|
|
|
+ return orElse();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+abstract class PasswordChanged implements SignUpEvent {
|
|
|
+ const factory PasswordChanged(String password) = _$PasswordChanged;
|
|
|
+
|
|
|
+ String get password => throw _privateConstructorUsedError;
|
|
|
+ @JsonKey(ignore: true)
|
|
|
+ $PasswordChangedCopyWith<PasswordChanged> get copyWith =>
|
|
|
+ throw _privateConstructorUsedError;
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+class _$SignUpStateTearOff {
|
|
|
+ const _$SignUpStateTearOff();
|
|
|
+
|
|
|
+ _SignUpState call(
|
|
|
+ {String? email,
|
|
|
+ String? password,
|
|
|
+ required bool isSubmitting,
|
|
|
+ required Option<String> passwordError,
|
|
|
+ required Option<String> emailError,
|
|
|
+ required Option<Either<UserProfile, UserError>> successOrFail}) {
|
|
|
+ return _SignUpState(
|
|
|
+ email: email,
|
|
|
+ password: password,
|
|
|
+ isSubmitting: isSubmitting,
|
|
|
+ passwordError: passwordError,
|
|
|
+ emailError: emailError,
|
|
|
+ successOrFail: successOrFail,
|
|
|
+ );
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+const $SignUpState = _$SignUpStateTearOff();
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+mixin _$SignUpState {
|
|
|
+ String? get email => throw _privateConstructorUsedError;
|
|
|
+ String? get password => throw _privateConstructorUsedError;
|
|
|
+ bool get isSubmitting => throw _privateConstructorUsedError;
|
|
|
+ Option<String> get passwordError => throw _privateConstructorUsedError;
|
|
|
+ Option<String> get emailError => throw _privateConstructorUsedError;
|
|
|
+ Option<Either<UserProfile, UserError>> get successOrFail =>
|
|
|
+ throw _privateConstructorUsedError;
|
|
|
+
|
|
|
+ @JsonKey(ignore: true)
|
|
|
+ $SignUpStateCopyWith<SignUpState> get copyWith =>
|
|
|
+ throw _privateConstructorUsedError;
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+abstract class $SignUpStateCopyWith<$Res> {
|
|
|
+ factory $SignUpStateCopyWith(
|
|
|
+ SignUpState value, $Res Function(SignUpState) then) =
|
|
|
+ _$SignUpStateCopyWithImpl<$Res>;
|
|
|
+ $Res call(
|
|
|
+ {String? email,
|
|
|
+ String? password,
|
|
|
+ bool isSubmitting,
|
|
|
+ Option<String> passwordError,
|
|
|
+ Option<String> emailError,
|
|
|
+ Option<Either<UserProfile, UserError>> successOrFail});
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+class _$SignUpStateCopyWithImpl<$Res> implements $SignUpStateCopyWith<$Res> {
|
|
|
+ _$SignUpStateCopyWithImpl(this._value, this._then);
|
|
|
+
|
|
|
+ final SignUpState _value;
|
|
|
+ // ignore: unused_field
|
|
|
+ final $Res Function(SignUpState) _then;
|
|
|
+
|
|
|
+ @override
|
|
|
+ $Res call({
|
|
|
+ Object? email = freezed,
|
|
|
+ Object? password = freezed,
|
|
|
+ Object? isSubmitting = freezed,
|
|
|
+ Object? passwordError = freezed,
|
|
|
+ Object? emailError = freezed,
|
|
|
+ Object? successOrFail = freezed,
|
|
|
+ }) {
|
|
|
+ return _then(_value.copyWith(
|
|
|
+ email: email == freezed
|
|
|
+ ? _value.email
|
|
|
+ : email // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ password: password == freezed
|
|
|
+ ? _value.password
|
|
|
+ : password // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ isSubmitting: isSubmitting == freezed
|
|
|
+ ? _value.isSubmitting
|
|
|
+ : isSubmitting // ignore: cast_nullable_to_non_nullable
|
|
|
+ as bool,
|
|
|
+ passwordError: passwordError == freezed
|
|
|
+ ? _value.passwordError
|
|
|
+ : passwordError // ignore: cast_nullable_to_non_nullable
|
|
|
+ as Option<String>,
|
|
|
+ emailError: emailError == freezed
|
|
|
+ ? _value.emailError
|
|
|
+ : emailError // ignore: cast_nullable_to_non_nullable
|
|
|
+ as Option<String>,
|
|
|
+ successOrFail: successOrFail == freezed
|
|
|
+ ? _value.successOrFail
|
|
|
+ : successOrFail // ignore: cast_nullable_to_non_nullable
|
|
|
+ as Option<Either<UserProfile, UserError>>,
|
|
|
+ ));
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+abstract class _$SignUpStateCopyWith<$Res>
|
|
|
+ implements $SignUpStateCopyWith<$Res> {
|
|
|
+ factory _$SignUpStateCopyWith(
|
|
|
+ _SignUpState value, $Res Function(_SignUpState) then) =
|
|
|
+ __$SignUpStateCopyWithImpl<$Res>;
|
|
|
+ @override
|
|
|
+ $Res call(
|
|
|
+ {String? email,
|
|
|
+ String? password,
|
|
|
+ bool isSubmitting,
|
|
|
+ Option<String> passwordError,
|
|
|
+ Option<String> emailError,
|
|
|
+ Option<Either<UserProfile, UserError>> successOrFail});
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+class __$SignUpStateCopyWithImpl<$Res> extends _$SignUpStateCopyWithImpl<$Res>
|
|
|
+ implements _$SignUpStateCopyWith<$Res> {
|
|
|
+ __$SignUpStateCopyWithImpl(
|
|
|
+ _SignUpState _value, $Res Function(_SignUpState) _then)
|
|
|
+ : super(_value, (v) => _then(v as _SignUpState));
|
|
|
+
|
|
|
+ @override
|
|
|
+ _SignUpState get _value => super._value as _SignUpState;
|
|
|
+
|
|
|
+ @override
|
|
|
+ $Res call({
|
|
|
+ Object? email = freezed,
|
|
|
+ Object? password = freezed,
|
|
|
+ Object? isSubmitting = freezed,
|
|
|
+ Object? passwordError = freezed,
|
|
|
+ Object? emailError = freezed,
|
|
|
+ Object? successOrFail = freezed,
|
|
|
+ }) {
|
|
|
+ return _then(_SignUpState(
|
|
|
+ email: email == freezed
|
|
|
+ ? _value.email
|
|
|
+ : email // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ password: password == freezed
|
|
|
+ ? _value.password
|
|
|
+ : password // ignore: cast_nullable_to_non_nullable
|
|
|
+ as String?,
|
|
|
+ isSubmitting: isSubmitting == freezed
|
|
|
+ ? _value.isSubmitting
|
|
|
+ : isSubmitting // ignore: cast_nullable_to_non_nullable
|
|
|
+ as bool,
|
|
|
+ passwordError: passwordError == freezed
|
|
|
+ ? _value.passwordError
|
|
|
+ : passwordError // ignore: cast_nullable_to_non_nullable
|
|
|
+ as Option<String>,
|
|
|
+ emailError: emailError == freezed
|
|
|
+ ? _value.emailError
|
|
|
+ : emailError // ignore: cast_nullable_to_non_nullable
|
|
|
+ as Option<String>,
|
|
|
+ successOrFail: successOrFail == freezed
|
|
|
+ ? _value.successOrFail
|
|
|
+ : successOrFail // ignore: cast_nullable_to_non_nullable
|
|
|
+ as Option<Either<UserProfile, UserError>>,
|
|
|
+ ));
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/// @nodoc
|
|
|
+
|
|
|
+class _$_SignUpState implements _SignUpState {
|
|
|
+ const _$_SignUpState(
|
|
|
+ {this.email,
|
|
|
+ this.password,
|
|
|
+ required this.isSubmitting,
|
|
|
+ required this.passwordError,
|
|
|
+ required this.emailError,
|
|
|
+ required this.successOrFail});
|
|
|
+
|
|
|
+ @override
|
|
|
+ final String? email;
|
|
|
+ @override
|
|
|
+ final String? password;
|
|
|
+ @override
|
|
|
+ final bool isSubmitting;
|
|
|
+ @override
|
|
|
+ final Option<String> passwordError;
|
|
|
+ @override
|
|
|
+ final Option<String> emailError;
|
|
|
+ @override
|
|
|
+ final Option<Either<UserProfile, UserError>> successOrFail;
|
|
|
+
|
|
|
+ @override
|
|
|
+ String toString() {
|
|
|
+ return 'SignUpState(email: $email, password: $password, isSubmitting: $isSubmitting, passwordError: $passwordError, emailError: $emailError, successOrFail: $successOrFail)';
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ bool operator ==(dynamic other) {
|
|
|
+ return identical(this, other) ||
|
|
|
+ (other is _SignUpState &&
|
|
|
+ (identical(other.email, email) ||
|
|
|
+ const DeepCollectionEquality().equals(other.email, email)) &&
|
|
|
+ (identical(other.password, password) ||
|
|
|
+ const DeepCollectionEquality()
|
|
|
+ .equals(other.password, password)) &&
|
|
|
+ (identical(other.isSubmitting, isSubmitting) ||
|
|
|
+ const DeepCollectionEquality()
|
|
|
+ .equals(other.isSubmitting, isSubmitting)) &&
|
|
|
+ (identical(other.passwordError, passwordError) ||
|
|
|
+ const DeepCollectionEquality()
|
|
|
+ .equals(other.passwordError, passwordError)) &&
|
|
|
+ (identical(other.emailError, emailError) ||
|
|
|
+ const DeepCollectionEquality()
|
|
|
+ .equals(other.emailError, emailError)) &&
|
|
|
+ (identical(other.successOrFail, successOrFail) ||
|
|
|
+ const DeepCollectionEquality()
|
|
|
+ .equals(other.successOrFail, successOrFail)));
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ int get hashCode =>
|
|
|
+ runtimeType.hashCode ^
|
|
|
+ const DeepCollectionEquality().hash(email) ^
|
|
|
+ const DeepCollectionEquality().hash(password) ^
|
|
|
+ const DeepCollectionEquality().hash(isSubmitting) ^
|
|
|
+ const DeepCollectionEquality().hash(passwordError) ^
|
|
|
+ const DeepCollectionEquality().hash(emailError) ^
|
|
|
+ const DeepCollectionEquality().hash(successOrFail);
|
|
|
+
|
|
|
+ @JsonKey(ignore: true)
|
|
|
+ @override
|
|
|
+ _$SignUpStateCopyWith<_SignUpState> get copyWith =>
|
|
|
+ __$SignUpStateCopyWithImpl<_SignUpState>(this, _$identity);
|
|
|
+}
|
|
|
+
|
|
|
+abstract class _SignUpState implements SignUpState {
|
|
|
+ const factory _SignUpState(
|
|
|
+ {String? email,
|
|
|
+ String? password,
|
|
|
+ required bool isSubmitting,
|
|
|
+ required Option<String> passwordError,
|
|
|
+ required Option<String> emailError,
|
|
|
+ required Option<Either<UserProfile, UserError>> successOrFail}) =
|
|
|
+ _$_SignUpState;
|
|
|
+
|
|
|
+ @override
|
|
|
+ String? get email => throw _privateConstructorUsedError;
|
|
|
+ @override
|
|
|
+ String? get password => throw _privateConstructorUsedError;
|
|
|
+ @override
|
|
|
+ bool get isSubmitting => throw _privateConstructorUsedError;
|
|
|
+ @override
|
|
|
+ Option<String> get passwordError => throw _privateConstructorUsedError;
|
|
|
+ @override
|
|
|
+ Option<String> get emailError => throw _privateConstructorUsedError;
|
|
|
+ @override
|
|
|
+ Option<Either<UserProfile, UserError>> get successOrFail =>
|
|
|
+ throw _privateConstructorUsedError;
|
|
|
+ @override
|
|
|
+ @JsonKey(ignore: true)
|
|
|
+ _$SignUpStateCopyWith<_SignUpState> get copyWith =>
|
|
|
+ throw _privateConstructorUsedError;
|
|
|
+}
|