2025-10-24 02:02:00 +07:00
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// 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, unnecessary_question_mark
part of ' auth_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 information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models ' ,
) ;
/// @nodoc
mixin _ $AuthEvent {
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) fetchCurrentUser ,
2025-10-24 13:55:00 +07:00
required TResult Function ( String outletId ) fetchCurrentOutlet ,
2025-10-24 02:02:00 +07:00
} ) = > throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? fetchCurrentUser ,
2025-10-24 13:55:00 +07:00
TResult ? Function ( String outletId ) ? fetchCurrentOutlet ,
2025-10-24 02:02:00 +07:00
} ) = > throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? fetchCurrentUser ,
2025-10-24 13:55:00 +07:00
TResult Function ( String outletId ) ? fetchCurrentOutlet ,
2025-10-24 02:02:00 +07:00
required TResult orElse ( ) ,
} ) = > throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _FetchCurrentUser value ) fetchCurrentUser ,
2025-10-24 13:55:00 +07:00
required TResult Function ( _FetchCurrentOutlet value ) fetchCurrentOutlet ,
2025-10-24 02:02:00 +07:00
} ) = > throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _FetchCurrentUser value ) ? fetchCurrentUser ,
2025-10-24 13:55:00 +07:00
TResult ? Function ( _FetchCurrentOutlet value ) ? fetchCurrentOutlet ,
2025-10-24 02:02:00 +07:00
} ) = > throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _FetchCurrentUser value ) ? fetchCurrentUser ,
2025-10-24 13:55:00 +07:00
TResult Function ( _FetchCurrentOutlet value ) ? fetchCurrentOutlet ,
2025-10-24 02:02:00 +07:00
required TResult orElse ( ) ,
} ) = > throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $AuthEventCopyWith < $Res > {
factory $AuthEventCopyWith ( AuthEvent value , $Res Function ( AuthEvent ) then ) =
_ $AuthEventCopyWithImpl < $Res , AuthEvent > ;
}
/// @nodoc
class _ $AuthEventCopyWithImpl < $Res , $Val extends AuthEvent >
implements $AuthEventCopyWith < $Res > {
_ $AuthEventCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of AuthEvent
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
abstract class _ $ $FetchCurrentUserImplCopyWith < $Res > {
factory _ $ $FetchCurrentUserImplCopyWith (
_ $FetchCurrentUserImpl value ,
$Res Function ( _ $FetchCurrentUserImpl ) then ,
) = __ $ $FetchCurrentUserImplCopyWithImpl < $Res > ;
}
/// @nodoc
class __ $ $FetchCurrentUserImplCopyWithImpl < $Res >
extends _ $AuthEventCopyWithImpl < $Res , _ $FetchCurrentUserImpl >
implements _ $ $FetchCurrentUserImplCopyWith < $Res > {
__ $ $FetchCurrentUserImplCopyWithImpl (
_ $FetchCurrentUserImpl _value ,
$Res Function ( _ $FetchCurrentUserImpl ) _then ,
) : super ( _value , _then ) ;
/// Create a copy of AuthEvent
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
class _ $FetchCurrentUserImpl implements _FetchCurrentUser {
const _ $FetchCurrentUserImpl ( ) ;
@ override
String toString ( ) {
return ' AuthEvent.fetchCurrentUser() ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & & other is _ $FetchCurrentUserImpl ) ;
}
@ override
int get hashCode = > runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) fetchCurrentUser ,
2025-10-24 13:55:00 +07:00
required TResult Function ( String outletId ) fetchCurrentOutlet ,
2025-10-24 02:02:00 +07:00
} ) {
return fetchCurrentUser ( ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? fetchCurrentUser ,
2025-10-24 13:55:00 +07:00
TResult ? Function ( String outletId ) ? fetchCurrentOutlet ,
2025-10-24 02:02:00 +07:00
} ) {
return fetchCurrentUser ? . call ( ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? fetchCurrentUser ,
2025-10-24 13:55:00 +07:00
TResult Function ( String outletId ) ? fetchCurrentOutlet ,
2025-10-24 02:02:00 +07:00
required TResult orElse ( ) ,
} ) {
if ( fetchCurrentUser ! = null ) {
return fetchCurrentUser ( ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _FetchCurrentUser value ) fetchCurrentUser ,
2025-10-24 13:55:00 +07:00
required TResult Function ( _FetchCurrentOutlet value ) fetchCurrentOutlet ,
2025-10-24 02:02:00 +07:00
} ) {
return fetchCurrentUser ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _FetchCurrentUser value ) ? fetchCurrentUser ,
2025-10-24 13:55:00 +07:00
TResult ? Function ( _FetchCurrentOutlet value ) ? fetchCurrentOutlet ,
2025-10-24 02:02:00 +07:00
} ) {
return fetchCurrentUser ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _FetchCurrentUser value ) ? fetchCurrentUser ,
2025-10-24 13:55:00 +07:00
TResult Function ( _FetchCurrentOutlet value ) ? fetchCurrentOutlet ,
2025-10-24 02:02:00 +07:00
required TResult orElse ( ) ,
} ) {
if ( fetchCurrentUser ! = null ) {
return fetchCurrentUser ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _FetchCurrentUser implements AuthEvent {
const factory _FetchCurrentUser ( ) = _ $FetchCurrentUserImpl ;
}
2025-10-24 13:55:00 +07:00
/// @nodoc
abstract class _ $ $FetchCurrentOutletImplCopyWith < $Res > {
factory _ $ $FetchCurrentOutletImplCopyWith (
_ $FetchCurrentOutletImpl value ,
$Res Function ( _ $FetchCurrentOutletImpl ) then ,
) = __ $ $FetchCurrentOutletImplCopyWithImpl < $Res > ;
@ useResult
$Res call ( { String outletId } ) ;
}
/// @nodoc
class __ $ $FetchCurrentOutletImplCopyWithImpl < $Res >
extends _ $AuthEventCopyWithImpl < $Res , _ $FetchCurrentOutletImpl >
implements _ $ $FetchCurrentOutletImplCopyWith < $Res > {
__ $ $FetchCurrentOutletImplCopyWithImpl (
_ $FetchCurrentOutletImpl _value ,
$Res Function ( _ $FetchCurrentOutletImpl ) _then ,
) : super ( _value , _then ) ;
/// Create a copy of AuthEvent
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( { Object ? outletId = null } ) {
return _then (
_ $FetchCurrentOutletImpl (
null = = outletId
? _value . outletId
: outletId // ignore: cast_nullable_to_non_nullable
as String ,
) ,
) ;
}
}
/// @nodoc
class _ $FetchCurrentOutletImpl implements _FetchCurrentOutlet {
const _ $FetchCurrentOutletImpl ( this . outletId ) ;
@ override
final String outletId ;
@ override
String toString ( ) {
return ' AuthEvent.fetchCurrentOutlet(outletId: $ outletId ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $FetchCurrentOutletImpl & &
( identical ( other . outletId , outletId ) | |
other . outletId = = outletId ) ) ;
}
@ override
int get hashCode = > Object . hash ( runtimeType , outletId ) ;
/// Create a copy of AuthEvent
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $FetchCurrentOutletImplCopyWith < _ $FetchCurrentOutletImpl > get copyWith = >
__ $ $FetchCurrentOutletImplCopyWithImpl < _ $FetchCurrentOutletImpl > (
this ,
_ $identity ,
) ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) fetchCurrentUser ,
required TResult Function ( String outletId ) fetchCurrentOutlet ,
} ) {
return fetchCurrentOutlet ( outletId ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? fetchCurrentUser ,
TResult ? Function ( String outletId ) ? fetchCurrentOutlet ,
} ) {
return fetchCurrentOutlet ? . call ( outletId ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? fetchCurrentUser ,
TResult Function ( String outletId ) ? fetchCurrentOutlet ,
required TResult orElse ( ) ,
} ) {
if ( fetchCurrentOutlet ! = null ) {
return fetchCurrentOutlet ( outletId ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _FetchCurrentUser value ) fetchCurrentUser ,
required TResult Function ( _FetchCurrentOutlet value ) fetchCurrentOutlet ,
} ) {
return fetchCurrentOutlet ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _FetchCurrentUser value ) ? fetchCurrentUser ,
TResult ? Function ( _FetchCurrentOutlet value ) ? fetchCurrentOutlet ,
} ) {
return fetchCurrentOutlet ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _FetchCurrentUser value ) ? fetchCurrentUser ,
TResult Function ( _FetchCurrentOutlet value ) ? fetchCurrentOutlet ,
required TResult orElse ( ) ,
} ) {
if ( fetchCurrentOutlet ! = null ) {
return fetchCurrentOutlet ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _FetchCurrentOutlet implements AuthEvent {
const factory _FetchCurrentOutlet ( final String outletId ) =
_ $FetchCurrentOutletImpl ;
String get outletId ;
/// Create a copy of AuthEvent
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $FetchCurrentOutletImplCopyWith < _ $FetchCurrentOutletImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
2025-10-24 02:02:00 +07:00
/// @nodoc
mixin _ $AuthState {
User get user = > throw _privateConstructorUsedError ;
2025-10-24 13:55:00 +07:00
Outlet get outlet = > throw _privateConstructorUsedError ;
2025-10-24 02:02:00 +07:00
AuthStatus get status = > throw _privateConstructorUsedError ;
Option < AuthFailure > get failureOption = > throw _privateConstructorUsedError ;
2025-10-24 13:55:00 +07:00
Option < OutletFailure > get failureOutletOption = >
throw _privateConstructorUsedError ;
2025-10-24 02:02:00 +07:00
bool get isFetching = > throw _privateConstructorUsedError ;
2025-10-24 13:55:00 +07:00
bool get isFetchingOutlet = > throw _privateConstructorUsedError ;
2025-10-24 02:02:00 +07:00
/// Create a copy of AuthState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$AuthStateCopyWith < AuthState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $AuthStateCopyWith < $Res > {
factory $AuthStateCopyWith ( AuthState value , $Res Function ( AuthState ) then ) =
_ $AuthStateCopyWithImpl < $Res , AuthState > ;
@ useResult
$Res call ( {
User user ,
2025-10-24 13:55:00 +07:00
Outlet outlet ,
2025-10-24 02:02:00 +07:00
AuthStatus status ,
Option < AuthFailure > failureOption ,
2025-10-24 13:55:00 +07:00
Option < OutletFailure > failureOutletOption ,
2025-10-24 02:02:00 +07:00
bool isFetching ,
2025-10-24 13:55:00 +07:00
bool isFetchingOutlet ,
2025-10-24 02:02:00 +07:00
} ) ;
$UserCopyWith < $Res > get user ;
2025-10-24 13:55:00 +07:00
$OutletCopyWith < $Res > get outlet ;
2025-10-24 02:02:00 +07:00
$AuthStatusCopyWith < $Res > get status ;
}
/// @nodoc
class _ $AuthStateCopyWithImpl < $Res , $Val extends AuthState >
implements $AuthStateCopyWith < $Res > {
_ $AuthStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of AuthState
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? user = null ,
2025-10-24 13:55:00 +07:00
Object ? outlet = null ,
2025-10-24 02:02:00 +07:00
Object ? status = null ,
Object ? failureOption = null ,
2025-10-24 13:55:00 +07:00
Object ? failureOutletOption = null ,
2025-10-24 02:02:00 +07:00
Object ? isFetching = null ,
2025-10-24 13:55:00 +07:00
Object ? isFetchingOutlet = null ,
2025-10-24 02:02:00 +07:00
} ) {
return _then (
_value . copyWith (
user: null = = user
? _value . user
: user // ignore: cast_nullable_to_non_nullable
as User ,
2025-10-24 13:55:00 +07:00
outlet: null = = outlet
? _value . outlet
: outlet // ignore: cast_nullable_to_non_nullable
as Outlet ,
2025-10-24 02:02:00 +07:00
status: null = = status
? _value . status
: status // ignore: cast_nullable_to_non_nullable
as AuthStatus ,
failureOption: null = = failureOption
? _value . failureOption
: failureOption // ignore: cast_nullable_to_non_nullable
as Option < AuthFailure > ,
2025-10-24 13:55:00 +07:00
failureOutletOption: null = = failureOutletOption
? _value . failureOutletOption
: failureOutletOption // ignore: cast_nullable_to_non_nullable
as Option < OutletFailure > ,
2025-10-24 02:02:00 +07:00
isFetching: null = = isFetching
? _value . isFetching
: isFetching // ignore: cast_nullable_to_non_nullable
as bool ,
2025-10-24 13:55:00 +07:00
isFetchingOutlet: null = = isFetchingOutlet
? _value . isFetchingOutlet
: isFetchingOutlet // ignore: cast_nullable_to_non_nullable
as bool ,
2025-10-24 02:02:00 +07:00
)
as $Val ,
) ;
}
/// Create a copy of AuthState
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$UserCopyWith < $Res > get user {
return $UserCopyWith < $Res > ( _value . user , ( value ) {
return _then ( _value . copyWith ( user: value ) as $Val ) ;
} ) ;
}
2025-10-24 13:55:00 +07:00
/// Create a copy of AuthState
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$OutletCopyWith < $Res > get outlet {
return $OutletCopyWith < $Res > ( _value . outlet , ( value ) {
return _then ( _value . copyWith ( outlet: value ) as $Val ) ;
} ) ;
}
2025-10-24 02:02:00 +07:00
/// Create a copy of AuthState
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( ' vm:prefer-inline ' )
$AuthStatusCopyWith < $Res > get status {
return $AuthStatusCopyWith < $Res > ( _value . status , ( value ) {
return _then ( _value . copyWith ( status: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $ $AuthStateImplCopyWith < $Res >
implements $AuthStateCopyWith < $Res > {
factory _ $ $AuthStateImplCopyWith (
_ $AuthStateImpl value ,
$Res Function ( _ $AuthStateImpl ) then ,
) = __ $ $AuthStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ( {
User user ,
2025-10-24 13:55:00 +07:00
Outlet outlet ,
2025-10-24 02:02:00 +07:00
AuthStatus status ,
Option < AuthFailure > failureOption ,
2025-10-24 13:55:00 +07:00
Option < OutletFailure > failureOutletOption ,
2025-10-24 02:02:00 +07:00
bool isFetching ,
2025-10-24 13:55:00 +07:00
bool isFetchingOutlet ,
2025-10-24 02:02:00 +07:00
} ) ;
@ override
$UserCopyWith < $Res > get user ;
@ override
2025-10-24 13:55:00 +07:00
$OutletCopyWith < $Res > get outlet ;
@ override
2025-10-24 02:02:00 +07:00
$AuthStatusCopyWith < $Res > get status ;
}
/// @nodoc
class __ $ $AuthStateImplCopyWithImpl < $Res >
extends _ $AuthStateCopyWithImpl < $Res , _ $AuthStateImpl >
implements _ $ $AuthStateImplCopyWith < $Res > {
__ $ $AuthStateImplCopyWithImpl (
_ $AuthStateImpl _value ,
$Res Function ( _ $AuthStateImpl ) _then ,
) : super ( _value , _then ) ;
/// Create a copy of AuthState
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? user = null ,
2025-10-24 13:55:00 +07:00
Object ? outlet = null ,
2025-10-24 02:02:00 +07:00
Object ? status = null ,
Object ? failureOption = null ,
2025-10-24 13:55:00 +07:00
Object ? failureOutletOption = null ,
2025-10-24 02:02:00 +07:00
Object ? isFetching = null ,
2025-10-24 13:55:00 +07:00
Object ? isFetchingOutlet = null ,
2025-10-24 02:02:00 +07:00
} ) {
return _then (
_ $AuthStateImpl (
user: null = = user
? _value . user
: user // ignore: cast_nullable_to_non_nullable
as User ,
2025-10-24 13:55:00 +07:00
outlet: null = = outlet
? _value . outlet
: outlet // ignore: cast_nullable_to_non_nullable
as Outlet ,
2025-10-24 02:02:00 +07:00
status: null = = status
? _value . status
: status // ignore: cast_nullable_to_non_nullable
as AuthStatus ,
failureOption: null = = failureOption
? _value . failureOption
: failureOption // ignore: cast_nullable_to_non_nullable
as Option < AuthFailure > ,
2025-10-24 13:55:00 +07:00
failureOutletOption: null = = failureOutletOption
? _value . failureOutletOption
: failureOutletOption // ignore: cast_nullable_to_non_nullable
as Option < OutletFailure > ,
2025-10-24 02:02:00 +07:00
isFetching: null = = isFetching
? _value . isFetching
: isFetching // ignore: cast_nullable_to_non_nullable
as bool ,
2025-10-24 13:55:00 +07:00
isFetchingOutlet: null = = isFetchingOutlet
? _value . isFetchingOutlet
: isFetchingOutlet // ignore: cast_nullable_to_non_nullable
as bool ,
2025-10-24 02:02:00 +07:00
) ,
) ;
}
}
/// @nodoc
class _ $AuthStateImpl extends _AuthState {
const _ $AuthStateImpl ( {
required this . user ,
2025-10-24 13:55:00 +07:00
required this . outlet ,
2025-10-24 02:02:00 +07:00
this . status = const AuthStatus . initial ( ) ,
required this . failureOption ,
2025-10-24 13:55:00 +07:00
required this . failureOutletOption ,
2025-10-24 02:02:00 +07:00
this . isFetching = false ,
2025-10-24 13:55:00 +07:00
this . isFetchingOutlet = false ,
2025-10-24 02:02:00 +07:00
} ) : super . _ ( ) ;
@ override
final User user ;
@ override
2025-10-24 13:55:00 +07:00
final Outlet outlet ;
@ override
2025-10-24 02:02:00 +07:00
@ JsonKey ( )
final AuthStatus status ;
@ override
final Option < AuthFailure > failureOption ;
@ override
2025-10-24 13:55:00 +07:00
final Option < OutletFailure > failureOutletOption ;
@ override
2025-10-24 02:02:00 +07:00
@ JsonKey ( )
final bool isFetching ;
2025-10-24 13:55:00 +07:00
@ override
@ JsonKey ( )
final bool isFetchingOutlet ;
2025-10-24 02:02:00 +07:00
@ override
String toString ( ) {
2025-10-24 13:55:00 +07:00
return ' AuthState(user: $ user , outlet: $ outlet , status: $ status , failureOption: $ failureOption , failureOutletOption: $ failureOutletOption , isFetching: $ isFetching , isFetchingOutlet: $ isFetchingOutlet ) ' ;
2025-10-24 02:02:00 +07:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $AuthStateImpl & &
( identical ( other . user , user ) | | other . user = = user ) & &
2025-10-24 13:55:00 +07:00
( identical ( other . outlet , outlet ) | | other . outlet = = outlet ) & &
2025-10-24 02:02:00 +07:00
( identical ( other . status , status ) | | other . status = = status ) & &
( identical ( other . failureOption , failureOption ) | |
other . failureOption = = failureOption ) & &
2025-10-24 13:55:00 +07:00
( identical ( other . failureOutletOption , failureOutletOption ) | |
other . failureOutletOption = = failureOutletOption ) & &
2025-10-24 02:02:00 +07:00
( identical ( other . isFetching , isFetching ) | |
2025-10-24 13:55:00 +07:00
other . isFetching = = isFetching ) & &
( identical ( other . isFetchingOutlet , isFetchingOutlet ) | |
other . isFetchingOutlet = = isFetchingOutlet ) ) ;
2025-10-24 02:02:00 +07:00
}
@ override
2025-10-24 13:55:00 +07:00
int get hashCode = > Object . hash (
runtimeType ,
user ,
outlet ,
status ,
failureOption ,
failureOutletOption ,
isFetching ,
isFetchingOutlet ,
) ;
2025-10-24 02:02:00 +07:00
/// Create a copy of AuthState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $AuthStateImplCopyWith < _ $AuthStateImpl > get copyWith = >
__ $ $AuthStateImplCopyWithImpl < _ $AuthStateImpl > ( this , _ $identity ) ;
}
abstract class _AuthState extends AuthState {
const factory _AuthState ( {
required final User user ,
2025-10-24 13:55:00 +07:00
required final Outlet outlet ,
2025-10-24 02:02:00 +07:00
final AuthStatus status ,
required final Option < AuthFailure > failureOption ,
2025-10-24 13:55:00 +07:00
required final Option < OutletFailure > failureOutletOption ,
2025-10-24 02:02:00 +07:00
final bool isFetching ,
2025-10-24 13:55:00 +07:00
final bool isFetchingOutlet ,
2025-10-24 02:02:00 +07:00
} ) = _ $AuthStateImpl ;
const _AuthState . _ ( ) : super . _ ( ) ;
@ override
User get user ;
@ override
2025-10-24 13:55:00 +07:00
Outlet get outlet ;
@ override
2025-10-24 02:02:00 +07:00
AuthStatus get status ;
@ override
Option < AuthFailure > get failureOption ;
@ override
2025-10-24 13:55:00 +07:00
Option < OutletFailure > get failureOutletOption ;
@ override
2025-10-24 02:02:00 +07:00
bool get isFetching ;
2025-10-24 13:55:00 +07:00
@ override
bool get isFetchingOutlet ;
2025-10-24 02:02:00 +07:00
/// Create a copy of AuthState
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $AuthStateImplCopyWith < _ $AuthStateImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
mixin _ $AuthStatus {
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) authenticated ,
required TResult Function ( ) unauthenticated ,
required TResult Function ( ) initial ,
} ) = > throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? authenticated ,
TResult ? Function ( ) ? unauthenticated ,
TResult ? Function ( ) ? initial ,
} ) = > throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? authenticated ,
TResult Function ( ) ? unauthenticated ,
TResult Function ( ) ? initial ,
required TResult orElse ( ) ,
} ) = > throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _Authenticated value ) authenticated ,
required TResult Function ( _Unauthenticated value ) unauthenticated ,
required TResult Function ( _Initial value ) initial ,
} ) = > throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _Authenticated value ) ? authenticated ,
TResult ? Function ( _Unauthenticated value ) ? unauthenticated ,
TResult ? Function ( _Initial value ) ? initial ,
} ) = > throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _Authenticated value ) ? authenticated ,
TResult Function ( _Unauthenticated value ) ? unauthenticated ,
TResult Function ( _Initial value ) ? initial ,
required TResult orElse ( ) ,
} ) = > throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $AuthStatusCopyWith < $Res > {
factory $AuthStatusCopyWith (
AuthStatus value ,
$Res Function ( AuthStatus ) then ,
) = _ $AuthStatusCopyWithImpl < $Res , AuthStatus > ;
}
/// @nodoc
class _ $AuthStatusCopyWithImpl < $Res , $Val extends AuthStatus >
implements $AuthStatusCopyWith < $Res > {
_ $AuthStatusCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of AuthStatus
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
abstract class _ $ $AuthenticatedImplCopyWith < $Res > {
factory _ $ $AuthenticatedImplCopyWith (
_ $AuthenticatedImpl value ,
$Res Function ( _ $AuthenticatedImpl ) then ,
) = __ $ $AuthenticatedImplCopyWithImpl < $Res > ;
}
/// @nodoc
class __ $ $AuthenticatedImplCopyWithImpl < $Res >
extends _ $AuthStatusCopyWithImpl < $Res , _ $AuthenticatedImpl >
implements _ $ $AuthenticatedImplCopyWith < $Res > {
__ $ $AuthenticatedImplCopyWithImpl (
_ $AuthenticatedImpl _value ,
$Res Function ( _ $AuthenticatedImpl ) _then ,
) : super ( _value , _then ) ;
/// Create a copy of AuthStatus
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
class _ $AuthenticatedImpl implements _Authenticated {
const _ $AuthenticatedImpl ( ) ;
@ override
String toString ( ) {
return ' AuthStatus.authenticated() ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & & other is _ $AuthenticatedImpl ) ;
}
@ override
int get hashCode = > runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) authenticated ,
required TResult Function ( ) unauthenticated ,
required TResult Function ( ) initial ,
} ) {
return authenticated ( ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? authenticated ,
TResult ? Function ( ) ? unauthenticated ,
TResult ? Function ( ) ? initial ,
} ) {
return authenticated ? . call ( ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? authenticated ,
TResult Function ( ) ? unauthenticated ,
TResult Function ( ) ? initial ,
required TResult orElse ( ) ,
} ) {
if ( authenticated ! = null ) {
return authenticated ( ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _Authenticated value ) authenticated ,
required TResult Function ( _Unauthenticated value ) unauthenticated ,
required TResult Function ( _Initial value ) initial ,
} ) {
return authenticated ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _Authenticated value ) ? authenticated ,
TResult ? Function ( _Unauthenticated value ) ? unauthenticated ,
TResult ? Function ( _Initial value ) ? initial ,
} ) {
return authenticated ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _Authenticated value ) ? authenticated ,
TResult Function ( _Unauthenticated value ) ? unauthenticated ,
TResult Function ( _Initial value ) ? initial ,
required TResult orElse ( ) ,
} ) {
if ( authenticated ! = null ) {
return authenticated ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _Authenticated implements AuthStatus {
const factory _Authenticated ( ) = _ $AuthenticatedImpl ;
}
/// @nodoc
abstract class _ $ $UnauthenticatedImplCopyWith < $Res > {
factory _ $ $UnauthenticatedImplCopyWith (
_ $UnauthenticatedImpl value ,
$Res Function ( _ $UnauthenticatedImpl ) then ,
) = __ $ $UnauthenticatedImplCopyWithImpl < $Res > ;
}
/// @nodoc
class __ $ $UnauthenticatedImplCopyWithImpl < $Res >
extends _ $AuthStatusCopyWithImpl < $Res , _ $UnauthenticatedImpl >
implements _ $ $UnauthenticatedImplCopyWith < $Res > {
__ $ $UnauthenticatedImplCopyWithImpl (
_ $UnauthenticatedImpl _value ,
$Res Function ( _ $UnauthenticatedImpl ) _then ,
) : super ( _value , _then ) ;
/// Create a copy of AuthStatus
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
class _ $UnauthenticatedImpl implements _Unauthenticated {
const _ $UnauthenticatedImpl ( ) ;
@ override
String toString ( ) {
return ' AuthStatus.unauthenticated() ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & & other is _ $UnauthenticatedImpl ) ;
}
@ override
int get hashCode = > runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) authenticated ,
required TResult Function ( ) unauthenticated ,
required TResult Function ( ) initial ,
} ) {
return unauthenticated ( ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? authenticated ,
TResult ? Function ( ) ? unauthenticated ,
TResult ? Function ( ) ? initial ,
} ) {
return unauthenticated ? . call ( ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? authenticated ,
TResult Function ( ) ? unauthenticated ,
TResult Function ( ) ? initial ,
required TResult orElse ( ) ,
} ) {
if ( unauthenticated ! = null ) {
return unauthenticated ( ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _Authenticated value ) authenticated ,
required TResult Function ( _Unauthenticated value ) unauthenticated ,
required TResult Function ( _Initial value ) initial ,
} ) {
return unauthenticated ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _Authenticated value ) ? authenticated ,
TResult ? Function ( _Unauthenticated value ) ? unauthenticated ,
TResult ? Function ( _Initial value ) ? initial ,
} ) {
return unauthenticated ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _Authenticated value ) ? authenticated ,
TResult Function ( _Unauthenticated value ) ? unauthenticated ,
TResult Function ( _Initial value ) ? initial ,
required TResult orElse ( ) ,
} ) {
if ( unauthenticated ! = null ) {
return unauthenticated ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _Unauthenticated implements AuthStatus {
const factory _Unauthenticated ( ) = _ $UnauthenticatedImpl ;
}
/// @nodoc
abstract class _ $ $InitialImplCopyWith < $Res > {
factory _ $ $InitialImplCopyWith (
_ $InitialImpl value ,
$Res Function ( _ $InitialImpl ) then ,
) = __ $ $InitialImplCopyWithImpl < $Res > ;
}
/// @nodoc
class __ $ $InitialImplCopyWithImpl < $Res >
extends _ $AuthStatusCopyWithImpl < $Res , _ $InitialImpl >
implements _ $ $InitialImplCopyWith < $Res > {
__ $ $InitialImplCopyWithImpl (
_ $InitialImpl _value ,
$Res Function ( _ $InitialImpl ) _then ,
) : super ( _value , _then ) ;
/// Create a copy of AuthStatus
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
class _ $InitialImpl implements _Initial {
const _ $InitialImpl ( ) ;
@ override
String toString ( ) {
return ' AuthStatus.initial() ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & & other is _ $InitialImpl ) ;
}
@ override
int get hashCode = > runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) authenticated ,
required TResult Function ( ) unauthenticated ,
required TResult Function ( ) initial ,
} ) {
return initial ( ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? authenticated ,
TResult ? Function ( ) ? unauthenticated ,
TResult ? Function ( ) ? initial ,
} ) {
return initial ? . call ( ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? authenticated ,
TResult Function ( ) ? unauthenticated ,
TResult Function ( ) ? initial ,
required TResult orElse ( ) ,
} ) {
if ( initial ! = null ) {
return initial ( ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _Authenticated value ) authenticated ,
required TResult Function ( _Unauthenticated value ) unauthenticated ,
required TResult Function ( _Initial value ) initial ,
} ) {
return initial ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _Authenticated value ) ? authenticated ,
TResult ? Function ( _Unauthenticated value ) ? unauthenticated ,
TResult ? Function ( _Initial value ) ? initial ,
} ) {
return initial ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _Authenticated value ) ? authenticated ,
TResult Function ( _Unauthenticated value ) ? unauthenticated ,
TResult Function ( _Initial value ) ? initial ,
required TResult orElse ( ) ,
} ) {
if ( initial ! = null ) {
return initial ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _Initial implements AuthStatus {
const factory _Initial ( ) = _ $InitialImpl ;
}