mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 10:03:18 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			772 lines
		
	
	
		
			24 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			772 lines
		
	
	
		
			24 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
| // coverage:ignore-file
 | |
| // 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_in_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 _$SignInEventTearOff {
 | |
|   const _$SignInEventTearOff();
 | |
| 
 | |
|   SignedInWithUserEmailAndPassword signedInWithUserEmailAndPassword() {
 | |
|     return const SignedInWithUserEmailAndPassword();
 | |
|   }
 | |
| 
 | |
|   EmailChanged emailChanged(String email) {
 | |
|     return EmailChanged(
 | |
|       email,
 | |
|     );
 | |
|   }
 | |
| 
 | |
|   PasswordChanged passwordChanged(String password) {
 | |
|     return PasswordChanged(
 | |
|       password,
 | |
|     );
 | |
|   }
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| const $SignInEvent = _$SignInEventTearOff();
 | |
| 
 | |
| /// @nodoc
 | |
| mixin _$SignInEvent {
 | |
|   @optionalTypeArgs
 | |
|   TResult when<TResult extends Object?>({
 | |
|     required TResult Function() signedInWithUserEmailAndPassword,
 | |
|     required TResult Function(String email) emailChanged,
 | |
|     required TResult Function(String password) passwordChanged,
 | |
|   }) =>
 | |
|       throw _privateConstructorUsedError;
 | |
|   @optionalTypeArgs
 | |
|   TResult? whenOrNull<TResult extends Object?>({
 | |
|     TResult Function()? signedInWithUserEmailAndPassword,
 | |
|     TResult Function(String email)? emailChanged,
 | |
|     TResult Function(String password)? passwordChanged,
 | |
|   }) =>
 | |
|       throw _privateConstructorUsedError;
 | |
|   @optionalTypeArgs
 | |
|   TResult maybeWhen<TResult extends Object?>({
 | |
|     TResult Function()? signedInWithUserEmailAndPassword,
 | |
|     TResult Function(String email)? emailChanged,
 | |
|     TResult Function(String password)? passwordChanged,
 | |
|     required TResult orElse(),
 | |
|   }) =>
 | |
|       throw _privateConstructorUsedError;
 | |
|   @optionalTypeArgs
 | |
|   TResult map<TResult extends Object?>({
 | |
|     required TResult Function(SignedInWithUserEmailAndPassword value)
 | |
|         signedInWithUserEmailAndPassword,
 | |
|     required TResult Function(EmailChanged value) emailChanged,
 | |
|     required TResult Function(PasswordChanged value) passwordChanged,
 | |
|   }) =>
 | |
|       throw _privateConstructorUsedError;
 | |
|   @optionalTypeArgs
 | |
|   TResult? mapOrNull<TResult extends Object?>({
 | |
|     TResult Function(SignedInWithUserEmailAndPassword value)?
 | |
|         signedInWithUserEmailAndPassword,
 | |
|     TResult Function(EmailChanged value)? emailChanged,
 | |
|     TResult Function(PasswordChanged value)? passwordChanged,
 | |
|   }) =>
 | |
|       throw _privateConstructorUsedError;
 | |
|   @optionalTypeArgs
 | |
|   TResult maybeMap<TResult extends Object?>({
 | |
|     TResult Function(SignedInWithUserEmailAndPassword value)?
 | |
|         signedInWithUserEmailAndPassword,
 | |
|     TResult Function(EmailChanged value)? emailChanged,
 | |
|     TResult Function(PasswordChanged value)? passwordChanged,
 | |
|     required TResult orElse(),
 | |
|   }) =>
 | |
|       throw _privateConstructorUsedError;
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| abstract class $SignInEventCopyWith<$Res> {
 | |
|   factory $SignInEventCopyWith(
 | |
|           SignInEvent value, $Res Function(SignInEvent) then) =
 | |
|       _$SignInEventCopyWithImpl<$Res>;
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| class _$SignInEventCopyWithImpl<$Res> implements $SignInEventCopyWith<$Res> {
 | |
|   _$SignInEventCopyWithImpl(this._value, this._then);
 | |
| 
 | |
|   final SignInEvent _value;
 | |
|   // ignore: unused_field
 | |
|   final $Res Function(SignInEvent) _then;
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| abstract class $SignedInWithUserEmailAndPasswordCopyWith<$Res> {
 | |
|   factory $SignedInWithUserEmailAndPasswordCopyWith(
 | |
|           SignedInWithUserEmailAndPassword value,
 | |
|           $Res Function(SignedInWithUserEmailAndPassword) then) =
 | |
|       _$SignedInWithUserEmailAndPasswordCopyWithImpl<$Res>;
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| class _$SignedInWithUserEmailAndPasswordCopyWithImpl<$Res>
 | |
|     extends _$SignInEventCopyWithImpl<$Res>
 | |
|     implements $SignedInWithUserEmailAndPasswordCopyWith<$Res> {
 | |
|   _$SignedInWithUserEmailAndPasswordCopyWithImpl(
 | |
|       SignedInWithUserEmailAndPassword _value,
 | |
|       $Res Function(SignedInWithUserEmailAndPassword) _then)
 | |
|       : super(_value, (v) => _then(v as SignedInWithUserEmailAndPassword));
 | |
| 
 | |
|   @override
 | |
|   SignedInWithUserEmailAndPassword get _value =>
 | |
|       super._value as SignedInWithUserEmailAndPassword;
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| 
 | |
| class _$SignedInWithUserEmailAndPassword
 | |
|     implements SignedInWithUserEmailAndPassword {
 | |
|   const _$SignedInWithUserEmailAndPassword();
 | |
| 
 | |
|   @override
 | |
|   String toString() {
 | |
|     return 'SignInEvent.signedInWithUserEmailAndPassword()';
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   bool operator ==(dynamic other) {
 | |
|     return identical(this, other) ||
 | |
|         (other is SignedInWithUserEmailAndPassword);
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   int get hashCode => runtimeType.hashCode;
 | |
| 
 | |
|   @override
 | |
|   @optionalTypeArgs
 | |
|   TResult when<TResult extends Object?>({
 | |
|     required TResult Function() signedInWithUserEmailAndPassword,
 | |
|     required TResult Function(String email) emailChanged,
 | |
|     required TResult Function(String password) passwordChanged,
 | |
|   }) {
 | |
|     return signedInWithUserEmailAndPassword();
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   @optionalTypeArgs
 | |
|   TResult? whenOrNull<TResult extends Object?>({
 | |
|     TResult Function()? signedInWithUserEmailAndPassword,
 | |
|     TResult Function(String email)? emailChanged,
 | |
|     TResult Function(String password)? passwordChanged,
 | |
|   }) {
 | |
|     return signedInWithUserEmailAndPassword?.call();
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   @optionalTypeArgs
 | |
|   TResult maybeWhen<TResult extends Object?>({
 | |
|     TResult Function()? signedInWithUserEmailAndPassword,
 | |
|     TResult Function(String email)? emailChanged,
 | |
|     TResult Function(String password)? passwordChanged,
 | |
|     required TResult orElse(),
 | |
|   }) {
 | |
|     if (signedInWithUserEmailAndPassword != null) {
 | |
|       return signedInWithUserEmailAndPassword();
 | |
|     }
 | |
|     return orElse();
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   @optionalTypeArgs
 | |
|   TResult map<TResult extends Object?>({
 | |
|     required TResult Function(SignedInWithUserEmailAndPassword value)
 | |
|         signedInWithUserEmailAndPassword,
 | |
|     required TResult Function(EmailChanged value) emailChanged,
 | |
|     required TResult Function(PasswordChanged value) passwordChanged,
 | |
|   }) {
 | |
|     return signedInWithUserEmailAndPassword(this);
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   @optionalTypeArgs
 | |
|   TResult? mapOrNull<TResult extends Object?>({
 | |
|     TResult Function(SignedInWithUserEmailAndPassword value)?
 | |
|         signedInWithUserEmailAndPassword,
 | |
|     TResult Function(EmailChanged value)? emailChanged,
 | |
|     TResult Function(PasswordChanged value)? passwordChanged,
 | |
|   }) {
 | |
|     return signedInWithUserEmailAndPassword?.call(this);
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   @optionalTypeArgs
 | |
|   TResult maybeMap<TResult extends Object?>({
 | |
|     TResult Function(SignedInWithUserEmailAndPassword value)?
 | |
|         signedInWithUserEmailAndPassword,
 | |
|     TResult Function(EmailChanged value)? emailChanged,
 | |
|     TResult Function(PasswordChanged value)? passwordChanged,
 | |
|     required TResult orElse(),
 | |
|   }) {
 | |
|     if (signedInWithUserEmailAndPassword != null) {
 | |
|       return signedInWithUserEmailAndPassword(this);
 | |
|     }
 | |
|     return orElse();
 | |
|   }
 | |
| }
 | |
| 
 | |
| abstract class SignedInWithUserEmailAndPassword implements SignInEvent {
 | |
|   const factory SignedInWithUserEmailAndPassword() =
 | |
|       _$SignedInWithUserEmailAndPassword;
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| abstract class $EmailChangedCopyWith<$Res> {
 | |
|   factory $EmailChangedCopyWith(
 | |
|           EmailChanged value, $Res Function(EmailChanged) then) =
 | |
|       _$EmailChangedCopyWithImpl<$Res>;
 | |
|   $Res call({String email});
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| class _$EmailChangedCopyWithImpl<$Res> extends _$SignInEventCopyWithImpl<$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 'SignInEvent.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() signedInWithUserEmailAndPassword,
 | |
|     required TResult Function(String email) emailChanged,
 | |
|     required TResult Function(String password) passwordChanged,
 | |
|   }) {
 | |
|     return emailChanged(email);
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   @optionalTypeArgs
 | |
|   TResult? whenOrNull<TResult extends Object?>({
 | |
|     TResult Function()? signedInWithUserEmailAndPassword,
 | |
|     TResult Function(String email)? emailChanged,
 | |
|     TResult Function(String password)? passwordChanged,
 | |
|   }) {
 | |
|     return emailChanged?.call(email);
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   @optionalTypeArgs
 | |
|   TResult maybeWhen<TResult extends Object?>({
 | |
|     TResult Function()? signedInWithUserEmailAndPassword,
 | |
|     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(SignedInWithUserEmailAndPassword value)
 | |
|         signedInWithUserEmailAndPassword,
 | |
|     required TResult Function(EmailChanged value) emailChanged,
 | |
|     required TResult Function(PasswordChanged value) passwordChanged,
 | |
|   }) {
 | |
|     return emailChanged(this);
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   @optionalTypeArgs
 | |
|   TResult? mapOrNull<TResult extends Object?>({
 | |
|     TResult Function(SignedInWithUserEmailAndPassword value)?
 | |
|         signedInWithUserEmailAndPassword,
 | |
|     TResult Function(EmailChanged value)? emailChanged,
 | |
|     TResult Function(PasswordChanged value)? passwordChanged,
 | |
|   }) {
 | |
|     return emailChanged?.call(this);
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   @optionalTypeArgs
 | |
|   TResult maybeMap<TResult extends Object?>({
 | |
|     TResult Function(SignedInWithUserEmailAndPassword value)?
 | |
|         signedInWithUserEmailAndPassword,
 | |
|     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 SignInEvent {
 | |
|   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 _$SignInEventCopyWithImpl<$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 'SignInEvent.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() signedInWithUserEmailAndPassword,
 | |
|     required TResult Function(String email) emailChanged,
 | |
|     required TResult Function(String password) passwordChanged,
 | |
|   }) {
 | |
|     return passwordChanged(password);
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   @optionalTypeArgs
 | |
|   TResult? whenOrNull<TResult extends Object?>({
 | |
|     TResult Function()? signedInWithUserEmailAndPassword,
 | |
|     TResult Function(String email)? emailChanged,
 | |
|     TResult Function(String password)? passwordChanged,
 | |
|   }) {
 | |
|     return passwordChanged?.call(password);
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   @optionalTypeArgs
 | |
|   TResult maybeWhen<TResult extends Object?>({
 | |
|     TResult Function()? signedInWithUserEmailAndPassword,
 | |
|     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(SignedInWithUserEmailAndPassword value)
 | |
|         signedInWithUserEmailAndPassword,
 | |
|     required TResult Function(EmailChanged value) emailChanged,
 | |
|     required TResult Function(PasswordChanged value) passwordChanged,
 | |
|   }) {
 | |
|     return passwordChanged(this);
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   @optionalTypeArgs
 | |
|   TResult? mapOrNull<TResult extends Object?>({
 | |
|     TResult Function(SignedInWithUserEmailAndPassword value)?
 | |
|         signedInWithUserEmailAndPassword,
 | |
|     TResult Function(EmailChanged value)? emailChanged,
 | |
|     TResult Function(PasswordChanged value)? passwordChanged,
 | |
|   }) {
 | |
|     return passwordChanged?.call(this);
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   @optionalTypeArgs
 | |
|   TResult maybeMap<TResult extends Object?>({
 | |
|     TResult Function(SignedInWithUserEmailAndPassword value)?
 | |
|         signedInWithUserEmailAndPassword,
 | |
|     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 SignInEvent {
 | |
|   const factory PasswordChanged(String password) = _$PasswordChanged;
 | |
| 
 | |
|   String get password => throw _privateConstructorUsedError;
 | |
|   @JsonKey(ignore: true)
 | |
|   $PasswordChangedCopyWith<PasswordChanged> get copyWith =>
 | |
|       throw _privateConstructorUsedError;
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| class _$SignInStateTearOff {
 | |
|   const _$SignInStateTearOff();
 | |
| 
 | |
|   _SignInState call(
 | |
|       {String? email,
 | |
|       String? password,
 | |
|       required bool isSubmitting,
 | |
|       required Option<String> passwordError,
 | |
|       required Option<String> emailError,
 | |
|       required Option<Either<UserProfile, FlowyError>> successOrFail}) {
 | |
|     return _SignInState(
 | |
|       email: email,
 | |
|       password: password,
 | |
|       isSubmitting: isSubmitting,
 | |
|       passwordError: passwordError,
 | |
|       emailError: emailError,
 | |
|       successOrFail: successOrFail,
 | |
|     );
 | |
|   }
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| const $SignInState = _$SignInStateTearOff();
 | |
| 
 | |
| /// @nodoc
 | |
| mixin _$SignInState {
 | |
|   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, FlowyError>> get successOrFail =>
 | |
|       throw _privateConstructorUsedError;
 | |
| 
 | |
|   @JsonKey(ignore: true)
 | |
|   $SignInStateCopyWith<SignInState> get copyWith =>
 | |
|       throw _privateConstructorUsedError;
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| abstract class $SignInStateCopyWith<$Res> {
 | |
|   factory $SignInStateCopyWith(
 | |
|           SignInState value, $Res Function(SignInState) then) =
 | |
|       _$SignInStateCopyWithImpl<$Res>;
 | |
|   $Res call(
 | |
|       {String? email,
 | |
|       String? password,
 | |
|       bool isSubmitting,
 | |
|       Option<String> passwordError,
 | |
|       Option<String> emailError,
 | |
|       Option<Either<UserProfile, FlowyError>> successOrFail});
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| class _$SignInStateCopyWithImpl<$Res> implements $SignInStateCopyWith<$Res> {
 | |
|   _$SignInStateCopyWithImpl(this._value, this._then);
 | |
| 
 | |
|   final SignInState _value;
 | |
|   // ignore: unused_field
 | |
|   final $Res Function(SignInState) _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, FlowyError>>,
 | |
|     ));
 | |
|   }
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| abstract class _$SignInStateCopyWith<$Res>
 | |
|     implements $SignInStateCopyWith<$Res> {
 | |
|   factory _$SignInStateCopyWith(
 | |
|           _SignInState value, $Res Function(_SignInState) then) =
 | |
|       __$SignInStateCopyWithImpl<$Res>;
 | |
|   @override
 | |
|   $Res call(
 | |
|       {String? email,
 | |
|       String? password,
 | |
|       bool isSubmitting,
 | |
|       Option<String> passwordError,
 | |
|       Option<String> emailError,
 | |
|       Option<Either<UserProfile, FlowyError>> successOrFail});
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| class __$SignInStateCopyWithImpl<$Res> extends _$SignInStateCopyWithImpl<$Res>
 | |
|     implements _$SignInStateCopyWith<$Res> {
 | |
|   __$SignInStateCopyWithImpl(
 | |
|       _SignInState _value, $Res Function(_SignInState) _then)
 | |
|       : super(_value, (v) => _then(v as _SignInState));
 | |
| 
 | |
|   @override
 | |
|   _SignInState get _value => super._value as _SignInState;
 | |
| 
 | |
|   @override
 | |
|   $Res call({
 | |
|     Object? email = freezed,
 | |
|     Object? password = freezed,
 | |
|     Object? isSubmitting = freezed,
 | |
|     Object? passwordError = freezed,
 | |
|     Object? emailError = freezed,
 | |
|     Object? successOrFail = freezed,
 | |
|   }) {
 | |
|     return _then(_SignInState(
 | |
|       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, FlowyError>>,
 | |
|     ));
 | |
|   }
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| 
 | |
| class _$_SignInState implements _SignInState {
 | |
|   const _$_SignInState(
 | |
|       {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, FlowyError>> successOrFail;
 | |
| 
 | |
|   @override
 | |
|   String toString() {
 | |
|     return 'SignInState(email: $email, password: $password, isSubmitting: $isSubmitting, passwordError: $passwordError, emailError: $emailError, successOrFail: $successOrFail)';
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   bool operator ==(dynamic other) {
 | |
|     return identical(this, other) ||
 | |
|         (other is _SignInState &&
 | |
|             (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
 | |
|   _$SignInStateCopyWith<_SignInState> get copyWith =>
 | |
|       __$SignInStateCopyWithImpl<_SignInState>(this, _$identity);
 | |
| }
 | |
| 
 | |
| abstract class _SignInState implements SignInState {
 | |
|   const factory _SignInState(
 | |
|           {String? email,
 | |
|           String? password,
 | |
|           required bool isSubmitting,
 | |
|           required Option<String> passwordError,
 | |
|           required Option<String> emailError,
 | |
|           required Option<Either<UserProfile, FlowyError>> successOrFail}) =
 | |
|       _$_SignInState;
 | |
| 
 | |
|   @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, FlowyError>> get successOrFail =>
 | |
|       throw _privateConstructorUsedError;
 | |
|   @override
 | |
|   @JsonKey(ignore: true)
 | |
|   _$SignInStateCopyWith<_SignInState> get copyWith =>
 | |
|       throw _privateConstructorUsedError;
 | |
| }
 | 
