2021-11-10 14:46:59 +08:00
// coverage:ignore-file
2021-07-13 13:14:49 +08:00
// GENERATED CODE - DO NOT MODIFY BY HAND
2021-07-28 13:41:39 +08:00
// 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
2021-07-13 13:14:49 +08:00
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. \n Please 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
2021-11-10 14:46:59 +08:00
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult Function ( ) ? signedInWithUserEmailAndPassword ,
TResult Function ( String email ) ? emailChanged ,
TResult Function ( String password ) ? passwordChanged ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
2021-07-13 13:14:49 +08:00
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
2021-11-10 14:46:59 +08:00
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult Function ( SignedInWithUserEmailAndPassword value ) ?
signedInWithUserEmailAndPassword ,
TResult Function ( EmailChanged value ) ? emailChanged ,
TResult Function ( PasswordChanged value ) ? passwordChanged ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
2021-07-13 13:14:49 +08:00
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 ( ) ;
}
2021-11-10 14:46:59 +08:00
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult Function ( ) ? signedInWithUserEmailAndPassword ,
TResult Function ( String email ) ? emailChanged ,
TResult Function ( String password ) ? passwordChanged ,
} ) {
return signedInWithUserEmailAndPassword ? . call ( ) ;
}
2021-07-13 13:14:49 +08:00
@ 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 ) ;
}
2021-11-10 14:46:59 +08:00
@ 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 ) ;
}
2021-07-13 13:14:49 +08:00
@ 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 ) ;
}
2021-11-10 14:46:59 +08:00
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult Function ( ) ? signedInWithUserEmailAndPassword ,
TResult Function ( String email ) ? emailChanged ,
TResult Function ( String password ) ? passwordChanged ,
} ) {
return emailChanged ? . call ( email ) ;
}
2021-07-13 13:14:49 +08:00
@ 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 ) ;
}
2021-11-10 14:46:59 +08:00
@ 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 ) ;
}
2021-07-13 13:14:49 +08:00
@ 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 ) ;
}
2021-11-10 14:46:59 +08:00
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult Function ( ) ? signedInWithUserEmailAndPassword ,
TResult Function ( String email ) ? emailChanged ,
TResult Function ( String password ) ? passwordChanged ,
} ) {
return passwordChanged ? . call ( password ) ;
}
2021-07-13 13:14:49 +08:00
@ 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 ) ;
}
2021-11-10 14:46:59 +08:00
@ 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 ) ;
}
2021-07-13 13:14:49 +08:00
@ 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 ,
2021-07-25 18:04:16 +08:00
required Option < String > passwordError ,
required Option < String > emailError ,
2021-12-14 18:04:51 +08:00
required Option < Either < UserProfile , FlowyError > > successOrFail } ) {
2021-07-13 13:14:49 +08:00
return _SignInState (
email: email ,
password: password ,
isSubmitting: isSubmitting ,
2021-07-25 18:04:16 +08:00
passwordError: passwordError ,
emailError: emailError ,
successOrFail: successOrFail ,
2021-07-13 13:14:49 +08:00
) ;
}
}
/// @nodoc
const $SignInState = _ $SignInStateTearOff ( ) ;
/// @nodoc
mixin _ $SignInState {
String ? get email = > throw _privateConstructorUsedError ;
String ? get password = > throw _privateConstructorUsedError ;
bool get isSubmitting = > throw _privateConstructorUsedError ;
2021-07-25 18:04:16 +08:00
Option < String > get passwordError = > throw _privateConstructorUsedError ;
Option < String > get emailError = > throw _privateConstructorUsedError ;
2021-12-14 18:04:51 +08:00
Option < Either < UserProfile , FlowyError > > get successOrFail = >
2021-07-13 13:14:49 +08:00
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 ,
2021-07-25 18:04:16 +08:00
Option < String > passwordError ,
Option < String > emailError ,
2021-12-14 18:04:51 +08:00
Option < Either < UserProfile , FlowyError > > successOrFail } ) ;
2021-07-13 13:14:49 +08:00
}
/// @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 ,
2021-07-25 18:04:16 +08:00
Object ? passwordError = freezed ,
Object ? emailError = freezed ,
Object ? successOrFail = freezed ,
2021-07-13 13:14:49 +08:00
} ) {
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 ,
2021-07-25 18:04:16 +08:00
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
2021-12-14 18:04:51 +08:00
as Option < Either < UserProfile , FlowyError > > ,
2021-07-13 13:14:49 +08:00
) ) ;
}
}
/// @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 ,
2021-07-25 18:04:16 +08:00
Option < String > passwordError ,
Option < String > emailError ,
2021-12-14 18:04:51 +08:00
Option < Either < UserProfile , FlowyError > > successOrFail } ) ;
2021-07-13 13:14:49 +08:00
}
/// @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 ,
2021-07-25 18:04:16 +08:00
Object ? passwordError = freezed ,
Object ? emailError = freezed ,
Object ? successOrFail = freezed ,
2021-07-13 13:14:49 +08:00
} ) {
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 ,
2021-07-25 18:04:16 +08:00
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
2021-12-14 18:04:51 +08:00
as Option < Either < UserProfile , FlowyError > > ,
2021-07-13 13:14:49 +08:00
) ) ;
}
}
/// @nodoc
class _ $_SignInState implements _SignInState {
const _ $_SignInState (
{ this . email ,
this . password ,
required this . isSubmitting ,
2021-07-25 18:04:16 +08:00
required this . passwordError ,
required this . emailError ,
required this . successOrFail } ) ;
2021-07-13 13:14:49 +08:00
@ override
final String ? email ;
@ override
final String ? password ;
@ override
final bool isSubmitting ;
@ override
2021-07-25 18:04:16 +08:00
final Option < String > passwordError ;
@ override
final Option < String > emailError ;
@ override
2021-12-14 18:04:51 +08:00
final Option < Either < UserProfile , FlowyError > > successOrFail ;
2021-07-13 13:14:49 +08:00
@ override
String toString ( ) {
2021-07-25 18:04:16 +08:00
return ' SignInState(email: $ email , password: $ password , isSubmitting: $ isSubmitting , passwordError: $ passwordError , emailError: $ emailError , successOrFail: $ successOrFail ) ' ;
2021-07-13 13:14:49 +08:00
}
@ 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 ) ) & &
2021-07-25 18:04:16 +08:00
( identical ( other . passwordError , passwordError ) | |
const DeepCollectionEquality ( )
. equals ( other . passwordError , passwordError ) ) & &
( identical ( other . emailError , emailError ) | |
2021-07-13 13:14:49 +08:00
const DeepCollectionEquality ( )
2021-07-25 18:04:16 +08:00
. equals ( other . emailError , emailError ) ) & &
( identical ( other . successOrFail , successOrFail ) | |
const DeepCollectionEquality ( )
. equals ( other . successOrFail , successOrFail ) ) ) ;
2021-07-13 13:14:49 +08:00
}
@ override
int get hashCode = >
runtimeType . hashCode ^
const DeepCollectionEquality ( ) . hash ( email ) ^
const DeepCollectionEquality ( ) . hash ( password ) ^
const DeepCollectionEquality ( ) . hash ( isSubmitting ) ^
2021-07-25 18:04:16 +08:00
const DeepCollectionEquality ( ) . hash ( passwordError ) ^
const DeepCollectionEquality ( ) . hash ( emailError ) ^
const DeepCollectionEquality ( ) . hash ( successOrFail ) ;
2021-07-13 13:14:49 +08:00
@ 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 ,
2021-07-25 18:04:16 +08:00
required Option < String > passwordError ,
required Option < String > emailError ,
2021-12-14 18:04:51 +08:00
required Option < Either < UserProfile , FlowyError > > successOrFail } ) =
2021-07-13 13:14:49 +08:00
_ $_SignInState ;
@ override
String ? get email = > throw _privateConstructorUsedError ;
@ override
String ? get password = > throw _privateConstructorUsedError ;
@ override
bool get isSubmitting = > throw _privateConstructorUsedError ;
@ override
2021-07-25 18:04:16 +08:00
Option < String > get passwordError = > throw _privateConstructorUsedError ;
@ override
Option < String > get emailError = > throw _privateConstructorUsedError ;
@ override
2021-12-14 18:04:51 +08:00
Option < Either < UserProfile , FlowyError > > get successOrFail = >
2021-07-13 13:14:49 +08:00
throw _privateConstructorUsedError ;
@ override
@ JsonKey ( ignore: true )
_ $SignInStateCopyWith < _SignInState > get copyWith = >
throw _privateConstructorUsedError ;
}