2024-03-10 19:44:53 +08: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 ' settings_ui_model.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 _ $SettingsUIState {
bool get isEnableToolSiteMirrors = > throw _privateConstructorUsedError ;
String get inputGameLaunchECore = > throw _privateConstructorUsedError ;
String ? get customLauncherPath = > throw _privateConstructorUsedError ;
String ? get customGamePath = > throw _privateConstructorUsedError ;
int get locationCacheSize = > throw _privateConstructorUsedError ;
2024-11-03 16:42:39 +08:00
bool get isUseInternalDNS = > throw _privateConstructorUsedError ;
2024-03-10 19:44:53 +08:00
2024-09-04 12:22:13 +08:00
/// Create a copy of SettingsUIState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-03-10 19:44:53 +08:00
$SettingsUIStateCopyWith < SettingsUIState > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SettingsUIStateCopyWith < $Res > {
factory $SettingsUIStateCopyWith (
SettingsUIState value , $Res Function ( SettingsUIState ) then ) =
_ $SettingsUIStateCopyWithImpl < $Res , SettingsUIState > ;
@ useResult
$Res call (
2024-04-27 16:23:57 +08:00
{ bool isEnableToolSiteMirrors ,
2024-03-10 19:44:53 +08:00
String inputGameLaunchECore ,
String ? customLauncherPath ,
String ? customGamePath ,
2024-11-03 16:42:39 +08:00
int locationCacheSize ,
bool isUseInternalDNS } ) ;
2024-03-10 19:44:53 +08:00
}
/// @nodoc
class _ $SettingsUIStateCopyWithImpl < $Res , $Val extends SettingsUIState >
implements $SettingsUIStateCopyWith < $Res > {
_ $SettingsUIStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2024-09-04 12:22:13 +08:00
/// Create a copy of SettingsUIState
/// with the given fields replaced by the non-null parameter values.
2024-03-10 19:44:53 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? isEnableToolSiteMirrors = null ,
Object ? inputGameLaunchECore = null ,
Object ? customLauncherPath = freezed ,
Object ? customGamePath = freezed ,
Object ? locationCacheSize = null ,
2024-11-03 16:42:39 +08:00
Object ? isUseInternalDNS = null ,
2024-03-10 19:44:53 +08:00
} ) {
return _then ( _value . copyWith (
isEnableToolSiteMirrors: null = = isEnableToolSiteMirrors
? _value . isEnableToolSiteMirrors
: isEnableToolSiteMirrors // ignore: cast_nullable_to_non_nullable
as bool ,
inputGameLaunchECore: null = = inputGameLaunchECore
? _value . inputGameLaunchECore
: inputGameLaunchECore // ignore: cast_nullable_to_non_nullable
as String ,
customLauncherPath: freezed = = customLauncherPath
? _value . customLauncherPath
: customLauncherPath // ignore: cast_nullable_to_non_nullable
as String ? ,
customGamePath: freezed = = customGamePath
? _value . customGamePath
: customGamePath // ignore: cast_nullable_to_non_nullable
as String ? ,
locationCacheSize: null = = locationCacheSize
? _value . locationCacheSize
: locationCacheSize // ignore: cast_nullable_to_non_nullable
as int ,
2024-11-03 16:42:39 +08:00
isUseInternalDNS: null = = isUseInternalDNS
? _value . isUseInternalDNS
: isUseInternalDNS // ignore: cast_nullable_to_non_nullable
as bool ,
2024-03-10 19:44:53 +08:00
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $SettingsUIStateImplCopyWith < $Res >
implements $SettingsUIStateCopyWith < $Res > {
factory _ $ $SettingsUIStateImplCopyWith ( _ $SettingsUIStateImpl value ,
$Res Function ( _ $SettingsUIStateImpl ) then ) =
__ $ $SettingsUIStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
2024-04-27 16:23:57 +08:00
{ bool isEnableToolSiteMirrors ,
2024-03-10 19:44:53 +08:00
String inputGameLaunchECore ,
String ? customLauncherPath ,
String ? customGamePath ,
2024-11-03 16:42:39 +08:00
int locationCacheSize ,
bool isUseInternalDNS } ) ;
2024-03-10 19:44:53 +08:00
}
/// @nodoc
class __ $ $SettingsUIStateImplCopyWithImpl < $Res >
extends _ $SettingsUIStateCopyWithImpl < $Res , _ $SettingsUIStateImpl >
implements _ $ $SettingsUIStateImplCopyWith < $Res > {
__ $ $SettingsUIStateImplCopyWithImpl (
_ $SettingsUIStateImpl _value , $Res Function ( _ $SettingsUIStateImpl ) _then )
: super ( _value , _then ) ;
2024-09-04 12:22:13 +08:00
/// Create a copy of SettingsUIState
/// with the given fields replaced by the non-null parameter values.
2024-03-10 19:44:53 +08:00
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? isEnableToolSiteMirrors = null ,
Object ? inputGameLaunchECore = null ,
Object ? customLauncherPath = freezed ,
Object ? customGamePath = freezed ,
Object ? locationCacheSize = null ,
2024-11-03 16:42:39 +08:00
Object ? isUseInternalDNS = null ,
2024-03-10 19:44:53 +08:00
} ) {
return _then ( _ $SettingsUIStateImpl (
isEnableToolSiteMirrors: null = = isEnableToolSiteMirrors
? _value . isEnableToolSiteMirrors
: isEnableToolSiteMirrors // ignore: cast_nullable_to_non_nullable
as bool ,
inputGameLaunchECore: null = = inputGameLaunchECore
? _value . inputGameLaunchECore
: inputGameLaunchECore // ignore: cast_nullable_to_non_nullable
as String ,
customLauncherPath: freezed = = customLauncherPath
? _value . customLauncherPath
: customLauncherPath // ignore: cast_nullable_to_non_nullable
as String ? ,
customGamePath: freezed = = customGamePath
? _value . customGamePath
: customGamePath // ignore: cast_nullable_to_non_nullable
as String ? ,
locationCacheSize: null = = locationCacheSize
? _value . locationCacheSize
: locationCacheSize // ignore: cast_nullable_to_non_nullable
as int ,
2024-11-03 16:42:39 +08:00
isUseInternalDNS: null = = isUseInternalDNS
? _value . isUseInternalDNS
: isUseInternalDNS // ignore: cast_nullable_to_non_nullable
as bool ,
2024-03-10 19:44:53 +08:00
) ) ;
}
}
/// @nodoc
class _ $SettingsUIStateImpl implements _SettingsUIState {
2024-03-15 00:01:06 +08:00
_ $SettingsUIStateImpl (
2024-04-27 16:23:57 +08:00
{ this . isEnableToolSiteMirrors = false ,
2024-03-10 19:44:53 +08:00
this . inputGameLaunchECore = " 0 " ,
this . customLauncherPath ,
this . customGamePath ,
2024-11-03 16:42:39 +08:00
this . locationCacheSize = 0 ,
this . isUseInternalDNS = false } ) ;
2024-03-10 19:44:53 +08:00
@ override
@ JsonKey ( )
final bool isEnableToolSiteMirrors ;
@ override
@ JsonKey ( )
final String inputGameLaunchECore ;
@ override
final String ? customLauncherPath ;
@ override
final String ? customGamePath ;
@ override
@ JsonKey ( )
final int locationCacheSize ;
2024-11-03 16:42:39 +08:00
@ override
@ JsonKey ( )
final bool isUseInternalDNS ;
2024-03-10 19:44:53 +08:00
@ override
String toString ( ) {
2024-11-03 16:42:39 +08:00
return ' SettingsUIState(isEnableToolSiteMirrors: $ isEnableToolSiteMirrors , inputGameLaunchECore: $ inputGameLaunchECore , customLauncherPath: $ customLauncherPath , customGamePath: $ customGamePath , locationCacheSize: $ locationCacheSize , isUseInternalDNS: $ isUseInternalDNS ) ' ;
2024-03-10 19:44:53 +08:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $SettingsUIStateImpl & &
( identical (
other . isEnableToolSiteMirrors , isEnableToolSiteMirrors ) | |
other . isEnableToolSiteMirrors = = isEnableToolSiteMirrors ) & &
( identical ( other . inputGameLaunchECore , inputGameLaunchECore ) | |
other . inputGameLaunchECore = = inputGameLaunchECore ) & &
( identical ( other . customLauncherPath , customLauncherPath ) | |
other . customLauncherPath = = customLauncherPath ) & &
( identical ( other . customGamePath , customGamePath ) | |
other . customGamePath = = customGamePath ) & &
( identical ( other . locationCacheSize , locationCacheSize ) | |
2024-11-03 16:42:39 +08:00
other . locationCacheSize = = locationCacheSize ) & &
( identical ( other . isUseInternalDNS , isUseInternalDNS ) | |
other . isUseInternalDNS = = isUseInternalDNS ) ) ;
2024-03-10 19:44:53 +08:00
}
@ override
int get hashCode = > Object . hash (
runtimeType ,
isEnableToolSiteMirrors ,
inputGameLaunchECore ,
customLauncherPath ,
customGamePath ,
2024-11-03 16:42:39 +08:00
locationCacheSize ,
isUseInternalDNS ) ;
2024-03-10 19:44:53 +08:00
2024-09-04 12:22:13 +08:00
/// Create a copy of SettingsUIState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-03-10 19:44:53 +08:00
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $SettingsUIStateImplCopyWith < _ $SettingsUIStateImpl > get copyWith = >
__ $ $SettingsUIStateImplCopyWithImpl < _ $SettingsUIStateImpl > (
this , _ $identity ) ;
}
abstract class _SettingsUIState implements SettingsUIState {
2024-03-15 00:01:06 +08:00
factory _SettingsUIState (
2024-04-27 16:23:57 +08:00
{ final bool isEnableToolSiteMirrors ,
2024-03-10 19:44:53 +08:00
final String inputGameLaunchECore ,
final String ? customLauncherPath ,
final String ? customGamePath ,
2024-11-03 16:42:39 +08:00
final int locationCacheSize ,
final bool isUseInternalDNS } ) = _ $SettingsUIStateImpl ;
2024-03-10 19:44:53 +08:00
@ override
bool get isEnableToolSiteMirrors ;
@ override
String get inputGameLaunchECore ;
@ override
String ? get customLauncherPath ;
@ override
String ? get customGamePath ;
@ override
int get locationCacheSize ;
2024-11-03 16:42:39 +08:00
@ override
bool get isUseInternalDNS ;
2024-09-04 12:22:13 +08:00
/// Create a copy of SettingsUIState
/// with the given fields replaced by the non-null parameter values.
2024-03-10 19:44:53 +08:00
@ override
2024-09-04 12:22:13 +08:00
@ JsonKey ( includeFromJson: false , includeToJson: false )
2024-03-10 19:44:53 +08:00
_ $ $SettingsUIStateImplCopyWith < _ $SettingsUIStateImpl > get copyWith = >
throw _privateConstructorUsedError ;
}