2021-06-19 15:41:19 +00:00
// 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
part of ' welcome_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 _ $WelcomeEventTearOff {
const _ $WelcomeEventTearOff ( ) ;
2021-07-12 15:27:58 +00:00
_GetUser getUser ( ) {
return const _GetUser ( ) ;
2021-06-19 15:41:19 +00:00
}
}
/// @nodoc
const $WelcomeEvent = _ $WelcomeEventTearOff ( ) ;
/// @nodoc
mixin _ $WelcomeEvent {
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
2021-07-12 15:27:58 +00:00
required TResult Function ( ) getUser ,
2021-06-19 15:41:19 +00:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
2021-07-12 15:27:58 +00:00
TResult Function ( ) ? getUser ,
2021-06-19 15:41:19 +00:00
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
2021-07-12 15:27:58 +00:00
required TResult Function ( _GetUser value ) getUser ,
2021-06-19 15:41:19 +00:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
2021-07-12 15:27:58 +00:00
TResult Function ( _GetUser value ) ? getUser ,
2021-06-19 15:41:19 +00:00
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $WelcomeEventCopyWith < $Res > {
factory $WelcomeEventCopyWith (
WelcomeEvent value , $Res Function ( WelcomeEvent ) then ) =
_ $WelcomeEventCopyWithImpl < $Res > ;
}
/// @nodoc
class _ $WelcomeEventCopyWithImpl < $Res > implements $WelcomeEventCopyWith < $Res > {
_ $WelcomeEventCopyWithImpl ( this . _value , this . _then ) ;
final WelcomeEvent _value ;
// ignore: unused_field
final $Res Function ( WelcomeEvent ) _then ;
}
/// @nodoc
2021-07-12 15:27:58 +00:00
abstract class _ $GetUserCopyWith < $Res > {
factory _ $GetUserCopyWith ( _GetUser value , $Res Function ( _GetUser ) then ) =
__ $GetUserCopyWithImpl < $Res > ;
2021-06-19 15:41:19 +00:00
}
/// @nodoc
2021-07-12 15:27:58 +00:00
class __ $GetUserCopyWithImpl < $Res > extends _ $WelcomeEventCopyWithImpl < $Res >
implements _ $GetUserCopyWith < $Res > {
__ $GetUserCopyWithImpl ( _GetUser _value , $Res Function ( _GetUser ) _then )
: super ( _value , ( v ) = > _then ( v as _GetUser ) ) ;
2021-06-19 15:41:19 +00:00
@ override
2021-07-12 15:27:58 +00:00
_GetUser get _value = > super . _value as _GetUser ;
2021-06-19 15:41:19 +00:00
}
/// @nodoc
2021-07-12 15:27:58 +00:00
class _ $_GetUser implements _GetUser {
const _ $_GetUser ( ) ;
2021-06-19 15:41:19 +00:00
@ override
String toString ( ) {
2021-07-12 15:27:58 +00:00
return ' WelcomeEvent.getUser() ' ;
2021-06-19 15:41:19 +00:00
}
@ override
bool operator = = ( dynamic other ) {
2021-07-12 15:27:58 +00:00
return identical ( this , other ) | | ( other is _GetUser ) ;
2021-06-19 15:41:19 +00:00
}
@ override
int get hashCode = > runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
2021-07-12 15:27:58 +00:00
required TResult Function ( ) getUser ,
2021-06-19 15:41:19 +00:00
} ) {
2021-07-12 15:27:58 +00:00
return getUser ( ) ;
2021-06-19 15:41:19 +00:00
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
2021-07-12 15:27:58 +00:00
TResult Function ( ) ? getUser ,
2021-06-19 15:41:19 +00:00
required TResult orElse ( ) ,
} ) {
2021-07-12 15:27:58 +00:00
if ( getUser ! = null ) {
return getUser ( ) ;
2021-06-19 15:41:19 +00:00
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
2021-07-12 15:27:58 +00:00
required TResult Function ( _GetUser value ) getUser ,
2021-06-19 15:41:19 +00:00
} ) {
2021-07-12 15:27:58 +00:00
return getUser ( this ) ;
2021-06-19 15:41:19 +00:00
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
2021-07-12 15:27:58 +00:00
TResult Function ( _GetUser value ) ? getUser ,
2021-06-19 15:41:19 +00:00
required TResult orElse ( ) ,
} ) {
2021-07-12 15:27:58 +00:00
if ( getUser ! = null ) {
return getUser ( this ) ;
2021-06-19 15:41:19 +00:00
}
return orElse ( ) ;
}
}
2021-07-12 15:27:58 +00:00
abstract class _GetUser implements WelcomeEvent {
const factory _GetUser ( ) = _ $_GetUser ;
2021-06-19 15:41:19 +00:00
}
/// @nodoc
class _ $WelcomeStateTearOff {
const _ $WelcomeStateTearOff ( ) ;
_WelcomeState call ( { required AuthState auth } ) {
return _WelcomeState (
auth: auth ,
) ;
}
}
/// @nodoc
const $WelcomeState = _ $WelcomeStateTearOff ( ) ;
/// @nodoc
mixin _ $WelcomeState {
AuthState get auth = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$WelcomeStateCopyWith < WelcomeState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $WelcomeStateCopyWith < $Res > {
factory $WelcomeStateCopyWith (
WelcomeState value , $Res Function ( WelcomeState ) then ) =
_ $WelcomeStateCopyWithImpl < $Res > ;
$Res call ( { AuthState auth } ) ;
$AuthStateCopyWith < $Res > get auth ;
}
/// @nodoc
class _ $WelcomeStateCopyWithImpl < $Res > implements $WelcomeStateCopyWith < $Res > {
_ $WelcomeStateCopyWithImpl ( this . _value , this . _then ) ;
final WelcomeState _value ;
// ignore: unused_field
final $Res Function ( WelcomeState ) _then ;
@ override
$Res call ( {
Object ? auth = freezed ,
} ) {
return _then ( _value . copyWith (
auth: auth = = freezed
? _value . auth
: auth // ignore: cast_nullable_to_non_nullable
as AuthState ,
) ) ;
}
@ override
$AuthStateCopyWith < $Res > get auth {
return $AuthStateCopyWith < $Res > ( _value . auth , ( value ) {
return _then ( _value . copyWith ( auth: value ) ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $WelcomeStateCopyWith < $Res >
implements $WelcomeStateCopyWith < $Res > {
factory _ $WelcomeStateCopyWith (
_WelcomeState value , $Res Function ( _WelcomeState ) then ) =
__ $WelcomeStateCopyWithImpl < $Res > ;
@ override
$Res call ( { AuthState auth } ) ;
@ override
$AuthStateCopyWith < $Res > get auth ;
}
/// @nodoc
class __ $WelcomeStateCopyWithImpl < $Res > extends _ $WelcomeStateCopyWithImpl < $Res >
implements _ $WelcomeStateCopyWith < $Res > {
__ $WelcomeStateCopyWithImpl (
_WelcomeState _value , $Res Function ( _WelcomeState ) _then )
: super ( _value , ( v ) = > _then ( v as _WelcomeState ) ) ;
@ override
_WelcomeState get _value = > super . _value as _WelcomeState ;
@ override
$Res call ( {
Object ? auth = freezed ,
} ) {
return _then ( _WelcomeState (
auth: auth = = freezed
? _value . auth
: auth // ignore: cast_nullable_to_non_nullable
as AuthState ,
) ) ;
}
}
/// @nodoc
class _ $_WelcomeState implements _WelcomeState {
const _ $_WelcomeState ( { required this . auth } ) ;
@ override
final AuthState auth ;
@ override
String toString ( ) {
return ' WelcomeState(auth: $ auth ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other is _WelcomeState & &
( identical ( other . auth , auth ) | |
const DeepCollectionEquality ( ) . equals ( other . auth , auth ) ) ) ;
}
@ override
int get hashCode = >
runtimeType . hashCode ^ const DeepCollectionEquality ( ) . hash ( auth ) ;
@ JsonKey ( ignore: true )
@ override
_ $WelcomeStateCopyWith < _WelcomeState > get copyWith = >
__ $WelcomeStateCopyWithImpl < _WelcomeState > ( this , _ $identity ) ;
}
abstract class _WelcomeState implements WelcomeState {
const factory _WelcomeState ( { required AuthState auth } ) = _ $_WelcomeState ;
@ override
AuthState get auth = > throw _privateConstructorUsedError ;
@ override
@ JsonKey ( ignore: true )
_ $WelcomeStateCopyWith < _WelcomeState > get copyWith = >
throw _privateConstructorUsedError ;
}