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
2021-09-05 22:52:20 +08:00
part of ' sign_up_bloc.dart ' ;
2021-07-13 13:14:49 +08:00
// **************************************************************************
// 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
2021-09-05 22:52:20 +08:00
class _ $SignUpEventTearOff {
const _ $SignUpEventTearOff ( ) ;
2021-07-13 13:14:49 +08:00
2021-09-05 22:52:20 +08:00
SignUpWithUserEmailAndPassword signUpWithUserEmailAndPassword ( ) {
return const SignUpWithUserEmailAndPassword ( ) ;
2021-07-13 13:14:49 +08:00
}
EmailChanged emailChanged ( String email ) {
return EmailChanged (
email ,
) ;
}
PasswordChanged passwordChanged ( String password ) {
return PasswordChanged (
password ,
) ;
}
2021-09-06 16:18:34 +08:00
RepeatPasswordChanged repeatPasswordChanged ( String password ) {
return RepeatPasswordChanged (
password ,
) ;
}
2021-07-13 13:14:49 +08:00
}
/// @nodoc
2021-09-05 22:52:20 +08:00
const $SignUpEvent = _ $SignUpEventTearOff ( ) ;
2021-07-13 13:14:49 +08:00
/// @nodoc
2021-09-05 22:52:20 +08:00
mixin _ $SignUpEvent {
2021-07-13 13:14:49 +08:00
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
2021-09-05 22:52:20 +08:00
required TResult Function ( ) signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
required TResult Function ( String email ) emailChanged ,
required TResult Function ( String password ) passwordChanged ,
2021-09-06 16:18:34 +08:00
required TResult Function ( String password ) repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
2021-11-10 14:46:59 +08:00
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult Function ( ) ? signUpWithUserEmailAndPassword ,
TResult Function ( String email ) ? emailChanged ,
TResult Function ( String password ) ? passwordChanged ,
TResult Function ( String password ) ? repeatPasswordChanged ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
2021-07-13 13:14:49 +08:00
TResult maybeWhen < TResult extends Object ? > ( {
2021-09-05 22:52:20 +08:00
TResult Function ( ) ? signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
TResult Function ( String email ) ? emailChanged ,
TResult Function ( String password ) ? passwordChanged ,
2021-09-06 16:18:34 +08:00
TResult Function ( String password ) ? repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
2021-09-05 22:52:20 +08:00
required TResult Function ( SignUpWithUserEmailAndPassword value )
signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
required TResult Function ( EmailChanged value ) emailChanged ,
required TResult Function ( PasswordChanged value ) passwordChanged ,
2021-09-06 16:18:34 +08:00
required TResult Function ( RepeatPasswordChanged value )
repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
2021-11-10 14:46:59 +08:00
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult Function ( SignUpWithUserEmailAndPassword value ) ?
signUpWithUserEmailAndPassword ,
TResult Function ( EmailChanged value ) ? emailChanged ,
TResult Function ( PasswordChanged value ) ? passwordChanged ,
TResult Function ( RepeatPasswordChanged value ) ? repeatPasswordChanged ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
2021-07-13 13:14:49 +08:00
TResult maybeMap < TResult extends Object ? > ( {
2021-09-05 22:52:20 +08:00
TResult Function ( SignUpWithUserEmailAndPassword value ) ?
signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
TResult Function ( EmailChanged value ) ? emailChanged ,
TResult Function ( PasswordChanged value ) ? passwordChanged ,
2021-09-06 16:18:34 +08:00
TResult Function ( RepeatPasswordChanged value ) ? repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
}
/// @nodoc
2021-09-05 22:52:20 +08:00
abstract class $SignUpEventCopyWith < $Res > {
factory $SignUpEventCopyWith (
SignUpEvent value , $Res Function ( SignUpEvent ) then ) =
_ $SignUpEventCopyWithImpl < $Res > ;
2021-07-13 13:14:49 +08:00
}
/// @nodoc
2021-09-05 22:52:20 +08:00
class _ $SignUpEventCopyWithImpl < $Res > implements $SignUpEventCopyWith < $Res > {
_ $SignUpEventCopyWithImpl ( this . _value , this . _then ) ;
2021-07-13 13:14:49 +08:00
2021-09-05 22:52:20 +08:00
final SignUpEvent _value ;
2021-07-13 13:14:49 +08:00
// ignore: unused_field
2021-09-05 22:52:20 +08:00
final $Res Function ( SignUpEvent ) _then ;
2021-07-13 13:14:49 +08:00
}
/// @nodoc
2021-09-05 22:52:20 +08:00
abstract class $SignUpWithUserEmailAndPasswordCopyWith < $Res > {
factory $SignUpWithUserEmailAndPasswordCopyWith (
SignUpWithUserEmailAndPassword value ,
$Res Function ( SignUpWithUserEmailAndPassword ) then ) =
_ $SignUpWithUserEmailAndPasswordCopyWithImpl < $Res > ;
2021-07-13 13:14:49 +08:00
}
/// @nodoc
2021-09-05 22:52:20 +08:00
class _ $SignUpWithUserEmailAndPasswordCopyWithImpl < $Res >
extends _ $SignUpEventCopyWithImpl < $Res >
implements $SignUpWithUserEmailAndPasswordCopyWith < $Res > {
_ $SignUpWithUserEmailAndPasswordCopyWithImpl (
SignUpWithUserEmailAndPassword _value ,
$Res Function ( SignUpWithUserEmailAndPassword ) _then )
: super ( _value , ( v ) = > _then ( v as SignUpWithUserEmailAndPassword ) ) ;
2021-07-13 13:14:49 +08:00
@ override
2021-09-05 22:52:20 +08:00
SignUpWithUserEmailAndPassword get _value = >
super . _value as SignUpWithUserEmailAndPassword ;
2021-07-13 13:14:49 +08:00
}
/// @nodoc
2021-09-05 22:52:20 +08:00
class _ $SignUpWithUserEmailAndPassword
implements SignUpWithUserEmailAndPassword {
const _ $SignUpWithUserEmailAndPassword ( ) ;
2021-07-13 13:14:49 +08:00
@ override
String toString ( ) {
2021-09-05 22:52:20 +08:00
return ' SignUpEvent.signUpWithUserEmailAndPassword() ' ;
2021-07-13 13:14:49 +08:00
}
@ override
bool operator = = ( dynamic other ) {
2021-09-05 22:52:20 +08:00
return identical ( this , other ) | | ( other is SignUpWithUserEmailAndPassword ) ;
2021-07-13 13:14:49 +08:00
}
@ override
int get hashCode = > runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
2021-09-05 22:52:20 +08:00
required TResult Function ( ) signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
required TResult Function ( String email ) emailChanged ,
required TResult Function ( String password ) passwordChanged ,
2021-09-06 16:18:34 +08:00
required TResult Function ( String password ) repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
} ) {
2021-09-05 22:52:20 +08:00
return signUpWithUserEmailAndPassword ( ) ;
2021-07-13 13:14:49 +08:00
}
2021-11-10 14:46:59 +08:00
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult Function ( ) ? signUpWithUserEmailAndPassword ,
TResult Function ( String email ) ? emailChanged ,
TResult Function ( String password ) ? passwordChanged ,
TResult Function ( String password ) ? repeatPasswordChanged ,
} ) {
return signUpWithUserEmailAndPassword ? . call ( ) ;
}
2021-07-13 13:14:49 +08:00
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
2021-09-05 22:52:20 +08:00
TResult Function ( ) ? signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
TResult Function ( String email ) ? emailChanged ,
TResult Function ( String password ) ? passwordChanged ,
2021-09-06 16:18:34 +08:00
TResult Function ( String password ) ? repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
required TResult orElse ( ) ,
} ) {
2021-09-05 22:52:20 +08:00
if ( signUpWithUserEmailAndPassword ! = null ) {
return signUpWithUserEmailAndPassword ( ) ;
2021-07-13 13:14:49 +08:00
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
2021-09-05 22:52:20 +08:00
required TResult Function ( SignUpWithUserEmailAndPassword value )
signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
required TResult Function ( EmailChanged value ) emailChanged ,
required TResult Function ( PasswordChanged value ) passwordChanged ,
2021-09-06 16:18:34 +08:00
required TResult Function ( RepeatPasswordChanged value )
repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
} ) {
2021-09-05 22:52:20 +08:00
return signUpWithUserEmailAndPassword ( this ) ;
2021-07-13 13:14:49 +08:00
}
2021-11-10 14:46:59 +08:00
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult Function ( SignUpWithUserEmailAndPassword value ) ?
signUpWithUserEmailAndPassword ,
TResult Function ( EmailChanged value ) ? emailChanged ,
TResult Function ( PasswordChanged value ) ? passwordChanged ,
TResult Function ( RepeatPasswordChanged value ) ? repeatPasswordChanged ,
} ) {
return signUpWithUserEmailAndPassword ? . call ( this ) ;
}
2021-07-13 13:14:49 +08:00
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
2021-09-05 22:52:20 +08:00
TResult Function ( SignUpWithUserEmailAndPassword value ) ?
signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
TResult Function ( EmailChanged value ) ? emailChanged ,
TResult Function ( PasswordChanged value ) ? passwordChanged ,
2021-09-06 16:18:34 +08:00
TResult Function ( RepeatPasswordChanged value ) ? repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
required TResult orElse ( ) ,
} ) {
2021-09-05 22:52:20 +08:00
if ( signUpWithUserEmailAndPassword ! = null ) {
return signUpWithUserEmailAndPassword ( this ) ;
2021-07-13 13:14:49 +08:00
}
return orElse ( ) ;
}
}
2021-09-05 22:52:20 +08:00
abstract class SignUpWithUserEmailAndPassword implements SignUpEvent {
const factory SignUpWithUserEmailAndPassword ( ) =
_ $SignUpWithUserEmailAndPassword ;
2021-07-13 13:14:49 +08:00
}
/// @nodoc
abstract class $EmailChangedCopyWith < $Res > {
factory $EmailChangedCopyWith (
EmailChanged value , $Res Function ( EmailChanged ) then ) =
_ $EmailChangedCopyWithImpl < $Res > ;
$Res call ( { String email } ) ;
}
/// @nodoc
2021-09-05 22:52:20 +08:00
class _ $EmailChangedCopyWithImpl < $Res > extends _ $SignUpEventCopyWithImpl < $Res >
2021-07-13 13:14:49 +08:00
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 ( ) {
2021-09-05 22:52:20 +08:00
return ' SignUpEvent.emailChanged(email: $ email ) ' ;
2021-07-13 13:14:49 +08:00
}
@ 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 ? > ( {
2021-09-05 22:52:20 +08:00
required TResult Function ( ) signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
required TResult Function ( String email ) emailChanged ,
required TResult Function ( String password ) passwordChanged ,
2021-09-06 16:18:34 +08:00
required TResult Function ( String password ) repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
} ) {
return emailChanged ( email ) ;
}
2021-11-10 14:46:59 +08:00
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult Function ( ) ? signUpWithUserEmailAndPassword ,
TResult Function ( String email ) ? emailChanged ,
TResult Function ( String password ) ? passwordChanged ,
TResult Function ( String password ) ? repeatPasswordChanged ,
} ) {
return emailChanged ? . call ( email ) ;
}
2021-07-13 13:14:49 +08:00
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
2021-09-05 22:52:20 +08:00
TResult Function ( ) ? signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
TResult Function ( String email ) ? emailChanged ,
TResult Function ( String password ) ? passwordChanged ,
2021-09-06 16:18:34 +08:00
TResult Function ( String password ) ? repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
required TResult orElse ( ) ,
} ) {
if ( emailChanged ! = null ) {
return emailChanged ( email ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
2021-09-05 22:52:20 +08:00
required TResult Function ( SignUpWithUserEmailAndPassword value )
signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
required TResult Function ( EmailChanged value ) emailChanged ,
required TResult Function ( PasswordChanged value ) passwordChanged ,
2021-09-06 16:18:34 +08:00
required TResult Function ( RepeatPasswordChanged value )
repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
} ) {
return emailChanged ( this ) ;
}
2021-11-10 14:46:59 +08:00
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult Function ( SignUpWithUserEmailAndPassword value ) ?
signUpWithUserEmailAndPassword ,
TResult Function ( EmailChanged value ) ? emailChanged ,
TResult Function ( PasswordChanged value ) ? passwordChanged ,
TResult Function ( RepeatPasswordChanged value ) ? repeatPasswordChanged ,
} ) {
return emailChanged ? . call ( this ) ;
}
2021-07-13 13:14:49 +08:00
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
2021-09-05 22:52:20 +08:00
TResult Function ( SignUpWithUserEmailAndPassword value ) ?
signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
TResult Function ( EmailChanged value ) ? emailChanged ,
TResult Function ( PasswordChanged value ) ? passwordChanged ,
2021-09-06 16:18:34 +08:00
TResult Function ( RepeatPasswordChanged value ) ? repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
required TResult orElse ( ) ,
} ) {
if ( emailChanged ! = null ) {
return emailChanged ( this ) ;
}
return orElse ( ) ;
}
}
2021-09-05 22:52:20 +08:00
abstract class EmailChanged implements SignUpEvent {
2021-07-13 13:14:49 +08:00
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 >
2021-09-05 22:52:20 +08:00
extends _ $SignUpEventCopyWithImpl < $Res >
2021-07-13 13:14:49 +08:00
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 ( ) {
2021-09-05 22:52:20 +08:00
return ' SignUpEvent.passwordChanged(password: $ password ) ' ;
2021-07-13 13:14:49 +08:00
}
@ 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 ? > ( {
2021-09-05 22:52:20 +08:00
required TResult Function ( ) signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
required TResult Function ( String email ) emailChanged ,
required TResult Function ( String password ) passwordChanged ,
2021-09-06 16:18:34 +08:00
required TResult Function ( String password ) repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
} ) {
return passwordChanged ( password ) ;
}
2021-11-10 14:46:59 +08:00
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult Function ( ) ? signUpWithUserEmailAndPassword ,
TResult Function ( String email ) ? emailChanged ,
TResult Function ( String password ) ? passwordChanged ,
TResult Function ( String password ) ? repeatPasswordChanged ,
} ) {
return passwordChanged ? . call ( password ) ;
}
2021-07-13 13:14:49 +08:00
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
2021-09-05 22:52:20 +08:00
TResult Function ( ) ? signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
TResult Function ( String email ) ? emailChanged ,
TResult Function ( String password ) ? passwordChanged ,
2021-09-06 16:18:34 +08:00
TResult Function ( String password ) ? repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
required TResult orElse ( ) ,
} ) {
if ( passwordChanged ! = null ) {
return passwordChanged ( password ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
2021-09-05 22:52:20 +08:00
required TResult Function ( SignUpWithUserEmailAndPassword value )
signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
required TResult Function ( EmailChanged value ) emailChanged ,
required TResult Function ( PasswordChanged value ) passwordChanged ,
2021-09-06 16:18:34 +08:00
required TResult Function ( RepeatPasswordChanged value )
repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
} ) {
return passwordChanged ( this ) ;
}
2021-11-10 14:46:59 +08:00
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult Function ( SignUpWithUserEmailAndPassword value ) ?
signUpWithUserEmailAndPassword ,
TResult Function ( EmailChanged value ) ? emailChanged ,
TResult Function ( PasswordChanged value ) ? passwordChanged ,
TResult Function ( RepeatPasswordChanged value ) ? repeatPasswordChanged ,
} ) {
return passwordChanged ? . call ( this ) ;
}
2021-07-13 13:14:49 +08:00
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
2021-09-05 22:52:20 +08:00
TResult Function ( SignUpWithUserEmailAndPassword value ) ?
signUpWithUserEmailAndPassword ,
2021-07-13 13:14:49 +08:00
TResult Function ( EmailChanged value ) ? emailChanged ,
TResult Function ( PasswordChanged value ) ? passwordChanged ,
2021-09-06 16:18:34 +08:00
TResult Function ( RepeatPasswordChanged value ) ? repeatPasswordChanged ,
2021-07-13 13:14:49 +08:00
required TResult orElse ( ) ,
} ) {
if ( passwordChanged ! = null ) {
return passwordChanged ( this ) ;
}
return orElse ( ) ;
}
}
2021-09-05 22:52:20 +08:00
abstract class PasswordChanged implements SignUpEvent {
2021-07-13 13:14:49 +08:00
const factory PasswordChanged ( String password ) = _ $PasswordChanged ;
String get password = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$PasswordChangedCopyWith < PasswordChanged > get copyWith = >
throw _privateConstructorUsedError ;
}
2021-09-06 16:18:34 +08:00
/// @nodoc
abstract class $RepeatPasswordChangedCopyWith < $Res > {
factory $RepeatPasswordChangedCopyWith ( RepeatPasswordChanged value ,
$Res Function ( RepeatPasswordChanged ) then ) =
_ $RepeatPasswordChangedCopyWithImpl < $Res > ;
$Res call ( { String password } ) ;
}
/// @nodoc
class _ $RepeatPasswordChangedCopyWithImpl < $Res >
extends _ $SignUpEventCopyWithImpl < $Res >
implements $RepeatPasswordChangedCopyWith < $Res > {
_ $RepeatPasswordChangedCopyWithImpl (
RepeatPasswordChanged _value , $Res Function ( RepeatPasswordChanged ) _then )
: super ( _value , ( v ) = > _then ( v as RepeatPasswordChanged ) ) ;
@ override
RepeatPasswordChanged get _value = > super . _value as RepeatPasswordChanged ;
@ override
$Res call ( {
Object ? password = freezed ,
} ) {
return _then ( RepeatPasswordChanged (
password = = freezed
? _value . password
: password // ignore: cast_nullable_to_non_nullable
as String ,
) ) ;
}
}
/// @nodoc
class _ $RepeatPasswordChanged implements RepeatPasswordChanged {
const _ $RepeatPasswordChanged ( this . password ) ;
@ override
final String password ;
@ override
String toString ( ) {
return ' SignUpEvent.repeatPasswordChanged(password: $ password ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other is RepeatPasswordChanged & &
( identical ( other . password , password ) | |
const DeepCollectionEquality ( )
. equals ( other . password , password ) ) ) ;
}
@ override
int get hashCode = >
runtimeType . hashCode ^ const DeepCollectionEquality ( ) . hash ( password ) ;
@ JsonKey ( ignore: true )
@ override
$RepeatPasswordChangedCopyWith < RepeatPasswordChanged > get copyWith = >
_ $RepeatPasswordChangedCopyWithImpl < RepeatPasswordChanged > (
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 ,
required TResult Function ( String password ) repeatPasswordChanged ,
} ) {
return repeatPasswordChanged ( password ) ;
}
2021-11-10 14:46:59 +08:00
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult Function ( ) ? signUpWithUserEmailAndPassword ,
TResult Function ( String email ) ? emailChanged ,
TResult Function ( String password ) ? passwordChanged ,
TResult Function ( String password ) ? repeatPasswordChanged ,
} ) {
return repeatPasswordChanged ? . call ( password ) ;
}
2021-09-06 16:18:34 +08:00
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? signUpWithUserEmailAndPassword ,
TResult Function ( String email ) ? emailChanged ,
TResult Function ( String password ) ? passwordChanged ,
TResult Function ( String password ) ? repeatPasswordChanged ,
required TResult orElse ( ) ,
} ) {
if ( repeatPasswordChanged ! = null ) {
return repeatPasswordChanged ( 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 ,
required TResult Function ( RepeatPasswordChanged value )
repeatPasswordChanged ,
} ) {
return repeatPasswordChanged ( this ) ;
}
2021-11-10 14:46:59 +08:00
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult Function ( SignUpWithUserEmailAndPassword value ) ?
signUpWithUserEmailAndPassword ,
TResult Function ( EmailChanged value ) ? emailChanged ,
TResult Function ( PasswordChanged value ) ? passwordChanged ,
TResult Function ( RepeatPasswordChanged value ) ? repeatPasswordChanged ,
} ) {
return repeatPasswordChanged ? . call ( this ) ;
}
2021-09-06 16:18:34 +08:00
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( SignUpWithUserEmailAndPassword value ) ?
signUpWithUserEmailAndPassword ,
TResult Function ( EmailChanged value ) ? emailChanged ,
TResult Function ( PasswordChanged value ) ? passwordChanged ,
TResult Function ( RepeatPasswordChanged value ) ? repeatPasswordChanged ,
required TResult orElse ( ) ,
} ) {
if ( repeatPasswordChanged ! = null ) {
return repeatPasswordChanged ( this ) ;
}
return orElse ( ) ;
}
}
abstract class RepeatPasswordChanged implements SignUpEvent {
const factory RepeatPasswordChanged ( String password ) =
_ $RepeatPasswordChanged ;
String get password = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$RepeatPasswordChangedCopyWith < RepeatPasswordChanged > get copyWith = >
throw _privateConstructorUsedError ;
}
2021-07-13 13:14:49 +08:00
/// @nodoc
2021-09-05 22:52:20 +08:00
class _ $SignUpStateTearOff {
const _ $SignUpStateTearOff ( ) ;
2021-07-13 13:14:49 +08:00
2021-09-05 22:52:20 +08:00
_SignUpState call (
2021-07-13 13:14:49 +08:00
{ String ? email ,
String ? password ,
2021-09-06 16:18:34 +08:00
String ? repeatedPassword ,
2021-07-13 13:14:49 +08:00
required bool isSubmitting ,
2021-07-25 18:04:16 +08:00
required Option < String > passwordError ,
2021-09-06 16:18:34 +08:00
required Option < String > repeatPasswordError ,
2021-07-25 18:04:16 +08:00
required Option < String > emailError ,
2021-12-14 18:04:51 +08:00
required Option < Either < UserProfile , FlowyError > > successOrFail } ) {
2021-09-05 22:52:20 +08:00
return _SignUpState (
2021-07-13 13:14:49 +08:00
email: email ,
password: password ,
2021-09-06 16:18:34 +08:00
repeatedPassword: repeatedPassword ,
2021-07-13 13:14:49 +08:00
isSubmitting: isSubmitting ,
2021-07-25 18:04:16 +08:00
passwordError: passwordError ,
2021-09-06 16:18:34 +08:00
repeatPasswordError: repeatPasswordError ,
2021-07-25 18:04:16 +08:00
emailError: emailError ,
successOrFail: successOrFail ,
2021-07-13 13:14:49 +08:00
) ;
}
}
/// @nodoc
2021-09-05 22:52:20 +08:00
const $SignUpState = _ $SignUpStateTearOff ( ) ;
2021-07-13 13:14:49 +08:00
/// @nodoc
2021-09-05 22:52:20 +08:00
mixin _ $SignUpState {
2021-07-13 13:14:49 +08:00
String ? get email = > throw _privateConstructorUsedError ;
String ? get password = > throw _privateConstructorUsedError ;
2021-09-06 16:18:34 +08:00
String ? get repeatedPassword = > throw _privateConstructorUsedError ;
2021-07-13 13:14:49 +08:00
bool get isSubmitting = > throw _privateConstructorUsedError ;
2021-07-25 18:04:16 +08:00
Option < String > get passwordError = > throw _privateConstructorUsedError ;
2021-09-06 16:18:34 +08:00
Option < String > get repeatPasswordError = > throw _privateConstructorUsedError ;
2021-07-25 18:04:16 +08:00
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 )
2021-09-05 22:52:20 +08:00
$SignUpStateCopyWith < SignUpState > get copyWith = >
2021-07-13 13:14:49 +08:00
throw _privateConstructorUsedError ;
}
/// @nodoc
2021-09-05 22:52:20 +08:00
abstract class $SignUpStateCopyWith < $Res > {
factory $SignUpStateCopyWith (
SignUpState value , $Res Function ( SignUpState ) then ) =
_ $SignUpStateCopyWithImpl < $Res > ;
2021-07-13 13:14:49 +08:00
$Res call (
{ String ? email ,
String ? password ,
2021-09-06 16:18:34 +08:00
String ? repeatedPassword ,
2021-07-13 13:14:49 +08:00
bool isSubmitting ,
2021-07-25 18:04:16 +08:00
Option < String > passwordError ,
2021-09-06 16:18:34 +08:00
Option < String > repeatPasswordError ,
2021-07-25 18:04:16 +08:00
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
2021-09-05 22:52:20 +08:00
class _ $SignUpStateCopyWithImpl < $Res > implements $SignUpStateCopyWith < $Res > {
_ $SignUpStateCopyWithImpl ( this . _value , this . _then ) ;
2021-07-13 13:14:49 +08:00
2021-09-05 22:52:20 +08:00
final SignUpState _value ;
2021-07-13 13:14:49 +08:00
// ignore: unused_field
2021-09-05 22:52:20 +08:00
final $Res Function ( SignUpState ) _then ;
2021-07-13 13:14:49 +08:00
@ override
$Res call ( {
Object ? email = freezed ,
Object ? password = freezed ,
2021-09-06 16:18:34 +08:00
Object ? repeatedPassword = freezed ,
2021-07-13 13:14:49 +08:00
Object ? isSubmitting = freezed ,
2021-07-25 18:04:16 +08:00
Object ? passwordError = freezed ,
2021-09-06 16:18:34 +08:00
Object ? repeatPasswordError = freezed ,
2021-07-25 18:04:16 +08:00
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 ? ,
2021-09-06 16:18:34 +08:00
repeatedPassword: repeatedPassword = = freezed
? _value . repeatedPassword
: repeatedPassword // ignore: cast_nullable_to_non_nullable
as String ? ,
2021-07-13 13:14:49 +08:00
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 > ,
2021-09-06 16:18:34 +08:00
repeatPasswordError: repeatPasswordError = = freezed
? _value . repeatPasswordError
: repeatPasswordError // ignore: cast_nullable_to_non_nullable
as Option < String > ,
2021-07-25 18:04:16 +08:00
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
2021-09-05 22:52:20 +08:00
abstract class _ $SignUpStateCopyWith < $Res >
implements $SignUpStateCopyWith < $Res > {
factory _ $SignUpStateCopyWith (
_SignUpState value , $Res Function ( _SignUpState ) then ) =
__ $SignUpStateCopyWithImpl < $Res > ;
2021-07-13 13:14:49 +08:00
@ override
$Res call (
{ String ? email ,
String ? password ,
2021-09-06 16:18:34 +08:00
String ? repeatedPassword ,
2021-07-13 13:14:49 +08:00
bool isSubmitting ,
2021-07-25 18:04:16 +08:00
Option < String > passwordError ,
2021-09-06 16:18:34 +08:00
Option < String > repeatPasswordError ,
2021-07-25 18:04:16 +08:00
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
2021-09-05 22:52:20 +08:00
class __ $SignUpStateCopyWithImpl < $Res > extends _ $SignUpStateCopyWithImpl < $Res >
implements _ $SignUpStateCopyWith < $Res > {
__ $SignUpStateCopyWithImpl (
_SignUpState _value , $Res Function ( _SignUpState ) _then )
: super ( _value , ( v ) = > _then ( v as _SignUpState ) ) ;
2021-07-13 13:14:49 +08:00
@ override
2021-09-05 22:52:20 +08:00
_SignUpState get _value = > super . _value as _SignUpState ;
2021-07-13 13:14:49 +08:00
@ override
$Res call ( {
Object ? email = freezed ,
Object ? password = freezed ,
2021-09-06 16:18:34 +08:00
Object ? repeatedPassword = freezed ,
2021-07-13 13:14:49 +08:00
Object ? isSubmitting = freezed ,
2021-07-25 18:04:16 +08:00
Object ? passwordError = freezed ,
2021-09-06 16:18:34 +08:00
Object ? repeatPasswordError = freezed ,
2021-07-25 18:04:16 +08:00
Object ? emailError = freezed ,
Object ? successOrFail = freezed ,
2021-07-13 13:14:49 +08:00
} ) {
2021-09-05 22:52:20 +08:00
return _then ( _SignUpState (
2021-07-13 13:14:49 +08:00
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 ? ,
2021-09-06 16:18:34 +08:00
repeatedPassword: repeatedPassword = = freezed
? _value . repeatedPassword
: repeatedPassword // ignore: cast_nullable_to_non_nullable
as String ? ,
2021-07-13 13:14:49 +08:00
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 > ,
2021-09-06 16:18:34 +08:00
repeatPasswordError: repeatPasswordError = = freezed
? _value . repeatPasswordError
: repeatPasswordError // ignore: cast_nullable_to_non_nullable
as Option < String > ,
2021-07-25 18:04:16 +08:00
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
2021-09-05 22:52:20 +08:00
class _ $_SignUpState implements _SignUpState {
const _ $_SignUpState (
2021-07-13 13:14:49 +08:00
{ this . email ,
this . password ,
2021-09-06 16:18:34 +08:00
this . repeatedPassword ,
2021-07-13 13:14:49 +08:00
required this . isSubmitting ,
2021-07-25 18:04:16 +08:00
required this . passwordError ,
2021-09-06 16:18:34 +08:00
required this . repeatPasswordError ,
2021-07-25 18:04:16 +08:00
required this . emailError ,
required this . successOrFail } ) ;
2021-07-13 13:14:49 +08:00
@ override
final String ? email ;
@ override
final String ? password ;
@ override
2021-09-06 16:18:34 +08:00
final String ? repeatedPassword ;
@ override
2021-07-13 13:14:49 +08:00
final bool isSubmitting ;
@ override
2021-07-25 18:04:16 +08:00
final Option < String > passwordError ;
@ override
2021-09-06 16:18:34 +08:00
final Option < String > repeatPasswordError ;
@ override
2021-07-25 18:04:16 +08:00
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-09-06 16:18:34 +08:00
return ' SignUpState(email: $ email , password: $ password , repeatedPassword: $ repeatedPassword , isSubmitting: $ isSubmitting , passwordError: $ passwordError , repeatPasswordError: $ repeatPasswordError , emailError: $ emailError , successOrFail: $ successOrFail ) ' ;
2021-07-13 13:14:49 +08:00
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
2021-09-05 22:52:20 +08:00
( other is _SignUpState & &
2021-07-13 13:14:49 +08:00
( identical ( other . email , email ) | |
const DeepCollectionEquality ( ) . equals ( other . email , email ) ) & &
( identical ( other . password , password ) | |
const DeepCollectionEquality ( )
. equals ( other . password , password ) ) & &
2021-09-06 16:18:34 +08:00
( identical ( other . repeatedPassword , repeatedPassword ) | |
const DeepCollectionEquality ( )
. equals ( other . repeatedPassword , repeatedPassword ) ) & &
2021-07-13 13:14:49 +08:00
( 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 ) ) & &
2021-09-06 16:18:34 +08:00
( identical ( other . repeatPasswordError , repeatPasswordError ) | |
const DeepCollectionEquality ( )
. equals ( other . repeatPasswordError , repeatPasswordError ) ) & &
2021-07-25 18:04:16 +08:00
( 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 ) ^
2021-09-06 16:18:34 +08:00
const DeepCollectionEquality ( ) . hash ( repeatedPassword ) ^
2021-07-13 13:14:49 +08:00
const DeepCollectionEquality ( ) . hash ( isSubmitting ) ^
2021-07-25 18:04:16 +08:00
const DeepCollectionEquality ( ) . hash ( passwordError ) ^
2021-09-06 16:18:34 +08:00
const DeepCollectionEquality ( ) . hash ( repeatPasswordError ) ^
2021-07-25 18:04:16 +08:00
const DeepCollectionEquality ( ) . hash ( emailError ) ^
const DeepCollectionEquality ( ) . hash ( successOrFail ) ;
2021-07-13 13:14:49 +08:00
@ JsonKey ( ignore: true )
@ override
2021-09-05 22:52:20 +08:00
_ $SignUpStateCopyWith < _SignUpState > get copyWith = >
__ $SignUpStateCopyWithImpl < _SignUpState > ( this , _ $identity ) ;
2021-07-13 13:14:49 +08:00
}
2021-09-05 22:52:20 +08:00
abstract class _SignUpState implements SignUpState {
const factory _SignUpState (
2021-07-13 13:14:49 +08:00
{ String ? email ,
String ? password ,
2021-09-06 16:18:34 +08:00
String ? repeatedPassword ,
2021-07-13 13:14:49 +08:00
required bool isSubmitting ,
2021-07-25 18:04:16 +08:00
required Option < String > passwordError ,
2021-09-06 16:18:34 +08:00
required Option < String > repeatPasswordError ,
2021-07-25 18:04:16 +08:00
required Option < String > emailError ,
2021-12-14 18:04:51 +08:00
required Option < Either < UserProfile , FlowyError > > successOrFail } ) =
2021-09-05 22:52:20 +08:00
_ $_SignUpState ;
2021-07-13 13:14:49 +08:00
@ override
String ? get email = > throw _privateConstructorUsedError ;
@ override
String ? get password = > throw _privateConstructorUsedError ;
@ override
2021-09-06 16:18:34 +08:00
String ? get repeatedPassword = > throw _privateConstructorUsedError ;
@ override
2021-07-13 13:14:49 +08:00
bool get isSubmitting = > throw _privateConstructorUsedError ;
@ override
2021-07-25 18:04:16 +08:00
Option < String > get passwordError = > throw _privateConstructorUsedError ;
@ override
2021-09-06 16:18:34 +08:00
Option < String > get repeatPasswordError = > throw _privateConstructorUsedError ;
@ override
2021-07-25 18:04:16 +08:00
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 )
2021-09-05 22:52:20 +08:00
_ $SignUpStateCopyWith < _SignUpState > get copyWith = >
2021-07-13 13:14:49 +08:00
throw _privateConstructorUsedError ;
}