2021-07-21 15:43:05 +08: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 ' app_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 _ $AppEventTearOff {
const _ $AppEventTearOff ( ) ;
2021-07-21 22:41:44 +08:00
_Initial initial ( ) {
return const _Initial ( ) ;
}
ViewsReceived viewsReceived ( Either < List < View > , WorkspaceError > appsOrFail ) {
return ViewsReceived (
2021-07-21 15:43:05 +08:00
appsOrFail ,
) ;
}
}
/// @nodoc
const $AppEvent = _ $AppEventTearOff ( ) ;
/// @nodoc
mixin _ $AppEvent {
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
2021-07-21 22:41:44 +08:00
required TResult Function ( ) initial ,
required TResult Function ( Either < List < View > , WorkspaceError > appsOrFail )
viewsReceived ,
2021-07-21 15:43:05 +08:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
2021-07-21 22:41:44 +08:00
TResult Function ( ) ? initial ,
TResult Function ( Either < List < View > , WorkspaceError > appsOrFail ) ?
viewsReceived ,
2021-07-21 15:43:05 +08:00
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
2021-07-21 22:41:44 +08:00
required TResult Function ( _Initial value ) initial ,
required TResult Function ( ViewsReceived value ) viewsReceived ,
2021-07-21 15:43:05 +08:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
2021-07-21 22:41:44 +08:00
TResult Function ( _Initial value ) ? initial ,
TResult Function ( ViewsReceived value ) ? viewsReceived ,
2021-07-21 15:43:05 +08:00
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $AppEventCopyWith < $Res > {
factory $AppEventCopyWith ( AppEvent value , $Res Function ( AppEvent ) then ) =
_ $AppEventCopyWithImpl < $Res > ;
}
/// @nodoc
class _ $AppEventCopyWithImpl < $Res > implements $AppEventCopyWith < $Res > {
_ $AppEventCopyWithImpl ( this . _value , this . _then ) ;
final AppEvent _value ;
// ignore: unused_field
final $Res Function ( AppEvent ) _then ;
2021-07-21 22:41:44 +08:00
}
/// @nodoc
abstract class _ $InitialCopyWith < $Res > {
factory _ $InitialCopyWith ( _Initial value , $Res Function ( _Initial ) then ) =
__ $InitialCopyWithImpl < $Res > ;
}
/// @nodoc
class __ $InitialCopyWithImpl < $Res > extends _ $AppEventCopyWithImpl < $Res >
implements _ $InitialCopyWith < $Res > {
__ $InitialCopyWithImpl ( _Initial _value , $Res Function ( _Initial ) _then )
: super ( _value , ( v ) = > _then ( v as _Initial ) ) ;
2021-07-21 15:43:05 +08:00
@ override
2021-07-21 22:41:44 +08:00
_Initial get _value = > super . _value as _Initial ;
}
/// @nodoc
class _ $_Initial implements _Initial {
const _ $_Initial ( ) ;
@ override
String toString ( ) {
return ' AppEvent.initial() ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | | ( other is _Initial ) ;
}
@ override
int get hashCode = > runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) initial ,
required TResult Function ( Either < List < View > , WorkspaceError > appsOrFail )
viewsReceived ,
2021-07-21 15:43:05 +08:00
} ) {
2021-07-21 22:41:44 +08:00
return initial ( ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? initial ,
TResult Function ( Either < List < View > , WorkspaceError > appsOrFail ) ?
viewsReceived ,
required TResult orElse ( ) ,
} ) {
if ( initial ! = null ) {
return initial ( ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _Initial value ) initial ,
required TResult Function ( ViewsReceived value ) viewsReceived ,
} ) {
return initial ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _Initial value ) ? initial ,
TResult Function ( ViewsReceived value ) ? viewsReceived ,
required TResult orElse ( ) ,
} ) {
if ( initial ! = null ) {
return initial ( this ) ;
}
return orElse ( ) ;
2021-07-21 15:43:05 +08:00
}
}
2021-07-21 22:41:44 +08:00
abstract class _Initial implements AppEvent {
const factory _Initial ( ) = _ $_Initial ;
}
2021-07-21 15:43:05 +08:00
/// @nodoc
2021-07-21 22:41:44 +08:00
abstract class $ViewsReceivedCopyWith < $Res > {
factory $ViewsReceivedCopyWith (
ViewsReceived value , $Res Function ( ViewsReceived ) then ) =
_ $ViewsReceivedCopyWithImpl < $Res > ;
$Res call ( { Either < List < View > , WorkspaceError > appsOrFail } ) ;
2021-07-21 15:43:05 +08:00
}
/// @nodoc
2021-07-21 22:41:44 +08:00
class _ $ViewsReceivedCopyWithImpl < $Res > extends _ $AppEventCopyWithImpl < $Res >
implements $ViewsReceivedCopyWith < $Res > {
_ $ViewsReceivedCopyWithImpl (
ViewsReceived _value , $Res Function ( ViewsReceived ) _then )
: super ( _value , ( v ) = > _then ( v as ViewsReceived ) ) ;
2021-07-21 15:43:05 +08:00
@ override
2021-07-21 22:41:44 +08:00
ViewsReceived get _value = > super . _value as ViewsReceived ;
2021-07-21 15:43:05 +08:00
@ override
$Res call ( {
Object ? appsOrFail = freezed ,
} ) {
2021-07-21 22:41:44 +08:00
return _then ( ViewsReceived (
2021-07-21 15:43:05 +08:00
appsOrFail = = freezed
? _value . appsOrFail
: appsOrFail // ignore: cast_nullable_to_non_nullable
2021-07-21 22:41:44 +08:00
as Either < List < View > , WorkspaceError > ,
2021-07-21 15:43:05 +08:00
) ) ;
}
}
/// @nodoc
2021-07-21 22:41:44 +08:00
class _ $ViewsReceived implements ViewsReceived {
const _ $ViewsReceived ( this . appsOrFail ) ;
2021-07-21 15:43:05 +08:00
@ override
2021-07-21 22:41:44 +08:00
final Either < List < View > , WorkspaceError > appsOrFail ;
2021-07-21 15:43:05 +08:00
@ override
String toString ( ) {
2021-07-21 22:41:44 +08:00
return ' AppEvent.viewsReceived(appsOrFail: $ appsOrFail ) ' ;
2021-07-21 15:43:05 +08:00
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
2021-07-21 22:41:44 +08:00
( other is ViewsReceived & &
2021-07-21 15:43:05 +08:00
( identical ( other . appsOrFail , appsOrFail ) | |
const DeepCollectionEquality ( )
. equals ( other . appsOrFail , appsOrFail ) ) ) ;
}
@ override
int get hashCode = >
runtimeType . hashCode ^ const DeepCollectionEquality ( ) . hash ( appsOrFail ) ;
@ JsonKey ( ignore: true )
@ override
2021-07-21 22:41:44 +08:00
$ViewsReceivedCopyWith < ViewsReceived > get copyWith = >
_ $ViewsReceivedCopyWithImpl < ViewsReceived > ( this , _ $identity ) ;
2021-07-21 15:43:05 +08:00
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
2021-07-21 22:41:44 +08:00
required TResult Function ( ) initial ,
required TResult Function ( Either < List < View > , WorkspaceError > appsOrFail )
viewsReceived ,
2021-07-21 15:43:05 +08:00
} ) {
2021-07-21 22:41:44 +08:00
return viewsReceived ( appsOrFail ) ;
2021-07-21 15:43:05 +08:00
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
2021-07-21 22:41:44 +08:00
TResult Function ( ) ? initial ,
TResult Function ( Either < List < View > , WorkspaceError > appsOrFail ) ?
viewsReceived ,
2021-07-21 15:43:05 +08:00
required TResult orElse ( ) ,
} ) {
2021-07-21 22:41:44 +08:00
if ( viewsReceived ! = null ) {
return viewsReceived ( appsOrFail ) ;
2021-07-21 15:43:05 +08:00
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
2021-07-21 22:41:44 +08:00
required TResult Function ( _Initial value ) initial ,
required TResult Function ( ViewsReceived value ) viewsReceived ,
2021-07-21 15:43:05 +08:00
} ) {
2021-07-21 22:41:44 +08:00
return viewsReceived ( this ) ;
2021-07-21 15:43:05 +08:00
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
2021-07-21 22:41:44 +08:00
TResult Function ( _Initial value ) ? initial ,
TResult Function ( ViewsReceived value ) ? viewsReceived ,
2021-07-21 15:43:05 +08:00
required TResult orElse ( ) ,
} ) {
2021-07-21 22:41:44 +08:00
if ( viewsReceived ! = null ) {
return viewsReceived ( this ) ;
2021-07-21 15:43:05 +08:00
}
return orElse ( ) ;
}
}
2021-07-21 22:41:44 +08:00
abstract class ViewsReceived implements AppEvent {
const factory ViewsReceived ( Either < List < View > , WorkspaceError > appsOrFail ) =
_ $ViewsReceived ;
2021-07-21 15:43:05 +08:00
2021-07-21 22:41:44 +08:00
Either < List < View > , WorkspaceError > get appsOrFail = >
2021-07-21 15:43:05 +08:00
throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
2021-07-21 22:41:44 +08:00
$ViewsReceivedCopyWith < ViewsReceived > get copyWith = >
2021-07-21 15:43:05 +08:00
throw _privateConstructorUsedError ;
}
/// @nodoc
class _ $AppStateTearOff {
const _ $AppStateTearOff ( ) ;
_AppState call (
2021-07-21 22:41:44 +08:00
{ required bool isLoading ,
2021-07-22 11:23:15 +08:00
required Option < List < View > > views ,
2021-07-21 15:43:05 +08:00
required Either < Unit , WorkspaceError > successOrFailure } ) {
return _AppState (
2021-07-21 22:41:44 +08:00
isLoading: isLoading ,
2021-07-22 11:23:15 +08:00
views: views ,
2021-07-21 15:43:05 +08:00
successOrFailure: successOrFailure ,
) ;
}
}
/// @nodoc
const $AppState = _ $AppStateTearOff ( ) ;
/// @nodoc
mixin _ $AppState {
2021-07-21 22:41:44 +08:00
bool get isLoading = > throw _privateConstructorUsedError ;
2021-07-22 11:23:15 +08:00
Option < List < View > > get views = > throw _privateConstructorUsedError ;
2021-07-21 15:43:05 +08:00
Either < Unit , WorkspaceError > get successOrFailure = >
throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$AppStateCopyWith < AppState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $AppStateCopyWith < $Res > {
factory $AppStateCopyWith ( AppState value , $Res Function ( AppState ) then ) =
_ $AppStateCopyWithImpl < $Res > ;
$Res call (
2021-07-21 22:41:44 +08:00
{ bool isLoading ,
2021-07-22 11:23:15 +08:00
Option < List < View > > views ,
2021-07-21 22:41:44 +08:00
Either < Unit , WorkspaceError > successOrFailure } ) ;
2021-07-21 15:43:05 +08:00
}
/// @nodoc
class _ $AppStateCopyWithImpl < $Res > implements $AppStateCopyWith < $Res > {
_ $AppStateCopyWithImpl ( this . _value , this . _then ) ;
final AppState _value ;
// ignore: unused_field
final $Res Function ( AppState ) _then ;
@ override
$Res call ( {
2021-07-21 22:41:44 +08:00
Object ? isLoading = freezed ,
2021-07-22 11:23:15 +08:00
Object ? views = freezed ,
2021-07-21 15:43:05 +08:00
Object ? successOrFailure = freezed ,
} ) {
return _then ( _value . copyWith (
2021-07-21 22:41:44 +08:00
isLoading: isLoading = = freezed
? _value . isLoading
: isLoading // ignore: cast_nullable_to_non_nullable
as bool ,
2021-07-22 11:23:15 +08:00
views: views = = freezed
? _value . views
: views // ignore: cast_nullable_to_non_nullable
as Option < List < View > > ,
2021-07-21 15:43:05 +08:00
successOrFailure: successOrFailure = = freezed
? _value . successOrFailure
: successOrFailure // ignore: cast_nullable_to_non_nullable
as Either < Unit , WorkspaceError > ,
) ) ;
}
}
/// @nodoc
abstract class _ $AppStateCopyWith < $Res > implements $AppStateCopyWith < $Res > {
factory _ $AppStateCopyWith ( _AppState value , $Res Function ( _AppState ) then ) =
__ $AppStateCopyWithImpl < $Res > ;
@ override
$Res call (
2021-07-21 22:41:44 +08:00
{ bool isLoading ,
2021-07-22 11:23:15 +08:00
Option < List < View > > views ,
2021-07-21 22:41:44 +08:00
Either < Unit , WorkspaceError > successOrFailure } ) ;
2021-07-21 15:43:05 +08:00
}
/// @nodoc
class __ $AppStateCopyWithImpl < $Res > extends _ $AppStateCopyWithImpl < $Res >
implements _ $AppStateCopyWith < $Res > {
__ $AppStateCopyWithImpl ( _AppState _value , $Res Function ( _AppState ) _then )
: super ( _value , ( v ) = > _then ( v as _AppState ) ) ;
@ override
_AppState get _value = > super . _value as _AppState ;
@ override
$Res call ( {
2021-07-21 22:41:44 +08:00
Object ? isLoading = freezed ,
2021-07-22 11:23:15 +08:00
Object ? views = freezed ,
2021-07-21 15:43:05 +08:00
Object ? successOrFailure = freezed ,
} ) {
return _then ( _AppState (
2021-07-21 22:41:44 +08:00
isLoading: isLoading = = freezed
? _value . isLoading
: isLoading // ignore: cast_nullable_to_non_nullable
as bool ,
2021-07-22 11:23:15 +08:00
views: views = = freezed
? _value . views
: views // ignore: cast_nullable_to_non_nullable
as Option < List < View > > ,
2021-07-21 15:43:05 +08:00
successOrFailure: successOrFailure = = freezed
? _value . successOrFailure
: successOrFailure // ignore: cast_nullable_to_non_nullable
as Either < Unit , WorkspaceError > ,
) ) ;
}
}
/// @nodoc
class _ $_AppState implements _AppState {
2021-07-21 22:41:44 +08:00
const _ $_AppState (
{ required this . isLoading ,
2021-07-22 11:23:15 +08:00
required this . views ,
2021-07-21 22:41:44 +08:00
required this . successOrFailure } ) ;
2021-07-21 15:43:05 +08:00
2021-07-21 22:41:44 +08:00
@ override
final bool isLoading ;
2021-07-21 15:43:05 +08:00
@ override
2021-07-22 11:23:15 +08:00
final Option < List < View > > views ;
2021-07-21 15:43:05 +08:00
@ override
final Either < Unit , WorkspaceError > successOrFailure ;
@ override
String toString ( ) {
2021-07-22 11:23:15 +08:00
return ' AppState(isLoading: $ isLoading , views: $ views , successOrFailure: $ successOrFailure ) ' ;
2021-07-21 15:43:05 +08:00
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other is _AppState & &
2021-07-21 22:41:44 +08:00
( identical ( other . isLoading , isLoading ) | |
const DeepCollectionEquality ( )
. equals ( other . isLoading , isLoading ) ) & &
2021-07-22 11:23:15 +08:00
( identical ( other . views , views ) | |
const DeepCollectionEquality ( ) . equals ( other . views , views ) ) & &
2021-07-21 15:43:05 +08:00
( identical ( other . successOrFailure , successOrFailure ) | |
const DeepCollectionEquality ( )
. equals ( other . successOrFailure , successOrFailure ) ) ) ;
}
@ override
int get hashCode = >
runtimeType . hashCode ^
2021-07-21 22:41:44 +08:00
const DeepCollectionEquality ( ) . hash ( isLoading ) ^
2021-07-22 11:23:15 +08:00
const DeepCollectionEquality ( ) . hash ( views ) ^
2021-07-21 15:43:05 +08:00
const DeepCollectionEquality ( ) . hash ( successOrFailure ) ;
@ JsonKey ( ignore: true )
@ override
_ $AppStateCopyWith < _AppState > get copyWith = >
__ $AppStateCopyWithImpl < _AppState > ( this , _ $identity ) ;
}
abstract class _AppState implements AppState {
const factory _AppState (
2021-07-21 22:41:44 +08:00
{ required bool isLoading ,
2021-07-22 11:23:15 +08:00
required Option < List < View > > views ,
2021-07-21 15:43:05 +08:00
required Either < Unit , WorkspaceError > successOrFailure } ) = _ $_AppState ;
2021-07-21 22:41:44 +08:00
@ override
bool get isLoading = > throw _privateConstructorUsedError ;
2021-07-21 15:43:05 +08:00
@ override
2021-07-22 11:23:15 +08:00
Option < List < View > > get views = > throw _privateConstructorUsedError ;
2021-07-21 15:43:05 +08:00
@ override
Either < Unit , WorkspaceError > get successOrFailure = >
throw _privateConstructorUsedError ;
@ override
@ JsonKey ( ignore: true )
_ $AppStateCopyWith < _AppState > get copyWith = >
throw _privateConstructorUsedError ;
}