mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 15:53:47 +08:00
324 lines
12 KiB
Dart
324 lines
12 KiB
Dart
// 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.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
|
|
|
/// @nodoc
|
|
mixin _$SettingsUIState {
|
|
dynamic get isDeviceSupportWinHello => throw _privateConstructorUsedError;
|
|
String get autoLoginEmail => throw _privateConstructorUsedError;
|
|
bool get isEnableAutoLogin => throw _privateConstructorUsedError;
|
|
bool get isEnableAutoLoginPwd => throw _privateConstructorUsedError;
|
|
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;
|
|
|
|
@JsonKey(ignore: true)
|
|
$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(
|
|
{dynamic isDeviceSupportWinHello,
|
|
String autoLoginEmail,
|
|
bool isEnableAutoLogin,
|
|
bool isEnableAutoLoginPwd,
|
|
bool isEnableToolSiteMirrors,
|
|
String inputGameLaunchECore,
|
|
String? customLauncherPath,
|
|
String? customGamePath,
|
|
int locationCacheSize});
|
|
}
|
|
|
|
/// @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;
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? isDeviceSupportWinHello = freezed,
|
|
Object? autoLoginEmail = null,
|
|
Object? isEnableAutoLogin = null,
|
|
Object? isEnableAutoLoginPwd = null,
|
|
Object? isEnableToolSiteMirrors = null,
|
|
Object? inputGameLaunchECore = null,
|
|
Object? customLauncherPath = freezed,
|
|
Object? customGamePath = freezed,
|
|
Object? locationCacheSize = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
isDeviceSupportWinHello: freezed == isDeviceSupportWinHello
|
|
? _value.isDeviceSupportWinHello
|
|
: isDeviceSupportWinHello // ignore: cast_nullable_to_non_nullable
|
|
as dynamic,
|
|
autoLoginEmail: null == autoLoginEmail
|
|
? _value.autoLoginEmail
|
|
: autoLoginEmail // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
isEnableAutoLogin: null == isEnableAutoLogin
|
|
? _value.isEnableAutoLogin
|
|
: isEnableAutoLogin // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
isEnableAutoLoginPwd: null == isEnableAutoLoginPwd
|
|
? _value.isEnableAutoLoginPwd
|
|
: isEnableAutoLoginPwd // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
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,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SettingsUIStateImplCopyWith<$Res>
|
|
implements $SettingsUIStateCopyWith<$Res> {
|
|
factory _$$SettingsUIStateImplCopyWith(_$SettingsUIStateImpl value,
|
|
$Res Function(_$SettingsUIStateImpl) then) =
|
|
__$$SettingsUIStateImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{dynamic isDeviceSupportWinHello,
|
|
String autoLoginEmail,
|
|
bool isEnableAutoLogin,
|
|
bool isEnableAutoLoginPwd,
|
|
bool isEnableToolSiteMirrors,
|
|
String inputGameLaunchECore,
|
|
String? customLauncherPath,
|
|
String? customGamePath,
|
|
int locationCacheSize});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SettingsUIStateImplCopyWithImpl<$Res>
|
|
extends _$SettingsUIStateCopyWithImpl<$Res, _$SettingsUIStateImpl>
|
|
implements _$$SettingsUIStateImplCopyWith<$Res> {
|
|
__$$SettingsUIStateImplCopyWithImpl(
|
|
_$SettingsUIStateImpl _value, $Res Function(_$SettingsUIStateImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? isDeviceSupportWinHello = freezed,
|
|
Object? autoLoginEmail = null,
|
|
Object? isEnableAutoLogin = null,
|
|
Object? isEnableAutoLoginPwd = null,
|
|
Object? isEnableToolSiteMirrors = null,
|
|
Object? inputGameLaunchECore = null,
|
|
Object? customLauncherPath = freezed,
|
|
Object? customGamePath = freezed,
|
|
Object? locationCacheSize = null,
|
|
}) {
|
|
return _then(_$SettingsUIStateImpl(
|
|
isDeviceSupportWinHello: freezed == isDeviceSupportWinHello
|
|
? _value.isDeviceSupportWinHello!
|
|
: isDeviceSupportWinHello,
|
|
autoLoginEmail: null == autoLoginEmail
|
|
? _value.autoLoginEmail
|
|
: autoLoginEmail // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
isEnableAutoLogin: null == isEnableAutoLogin
|
|
? _value.isEnableAutoLogin
|
|
: isEnableAutoLogin // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
isEnableAutoLoginPwd: null == isEnableAutoLoginPwd
|
|
? _value.isEnableAutoLoginPwd
|
|
: isEnableAutoLoginPwd // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
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,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$SettingsUIStateImpl implements _SettingsUIState {
|
|
_$SettingsUIStateImpl(
|
|
{this.isDeviceSupportWinHello = false,
|
|
this.autoLoginEmail = "-",
|
|
this.isEnableAutoLogin = false,
|
|
this.isEnableAutoLoginPwd = false,
|
|
this.isEnableToolSiteMirrors = false,
|
|
this.inputGameLaunchECore = "0",
|
|
this.customLauncherPath,
|
|
this.customGamePath,
|
|
this.locationCacheSize = 0});
|
|
|
|
@override
|
|
@JsonKey()
|
|
final dynamic isDeviceSupportWinHello;
|
|
@override
|
|
@JsonKey()
|
|
final String autoLoginEmail;
|
|
@override
|
|
@JsonKey()
|
|
final bool isEnableAutoLogin;
|
|
@override
|
|
@JsonKey()
|
|
final bool isEnableAutoLoginPwd;
|
|
@override
|
|
@JsonKey()
|
|
final bool isEnableToolSiteMirrors;
|
|
@override
|
|
@JsonKey()
|
|
final String inputGameLaunchECore;
|
|
@override
|
|
final String? customLauncherPath;
|
|
@override
|
|
final String? customGamePath;
|
|
@override
|
|
@JsonKey()
|
|
final int locationCacheSize;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SettingsUIState(isDeviceSupportWinHello: $isDeviceSupportWinHello, autoLoginEmail: $autoLoginEmail, isEnableAutoLogin: $isEnableAutoLogin, isEnableAutoLoginPwd: $isEnableAutoLoginPwd, isEnableToolSiteMirrors: $isEnableToolSiteMirrors, inputGameLaunchECore: $inputGameLaunchECore, customLauncherPath: $customLauncherPath, customGamePath: $customGamePath, locationCacheSize: $locationCacheSize)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SettingsUIStateImpl &&
|
|
const DeepCollectionEquality().equals(
|
|
other.isDeviceSupportWinHello, isDeviceSupportWinHello) &&
|
|
(identical(other.autoLoginEmail, autoLoginEmail) ||
|
|
other.autoLoginEmail == autoLoginEmail) &&
|
|
(identical(other.isEnableAutoLogin, isEnableAutoLogin) ||
|
|
other.isEnableAutoLogin == isEnableAutoLogin) &&
|
|
(identical(other.isEnableAutoLoginPwd, isEnableAutoLoginPwd) ||
|
|
other.isEnableAutoLoginPwd == isEnableAutoLoginPwd) &&
|
|
(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) ||
|
|
other.locationCacheSize == locationCacheSize));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
const DeepCollectionEquality().hash(isDeviceSupportWinHello),
|
|
autoLoginEmail,
|
|
isEnableAutoLogin,
|
|
isEnableAutoLoginPwd,
|
|
isEnableToolSiteMirrors,
|
|
inputGameLaunchECore,
|
|
customLauncherPath,
|
|
customGamePath,
|
|
locationCacheSize);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SettingsUIStateImplCopyWith<_$SettingsUIStateImpl> get copyWith =>
|
|
__$$SettingsUIStateImplCopyWithImpl<_$SettingsUIStateImpl>(
|
|
this, _$identity);
|
|
}
|
|
|
|
abstract class _SettingsUIState implements SettingsUIState {
|
|
factory _SettingsUIState(
|
|
{final dynamic isDeviceSupportWinHello,
|
|
final String autoLoginEmail,
|
|
final bool isEnableAutoLogin,
|
|
final bool isEnableAutoLoginPwd,
|
|
final bool isEnableToolSiteMirrors,
|
|
final String inputGameLaunchECore,
|
|
final String? customLauncherPath,
|
|
final String? customGamePath,
|
|
final int locationCacheSize}) = _$SettingsUIStateImpl;
|
|
|
|
@override
|
|
dynamic get isDeviceSupportWinHello;
|
|
@override
|
|
String get autoLoginEmail;
|
|
@override
|
|
bool get isEnableAutoLogin;
|
|
@override
|
|
bool get isEnableAutoLoginPwd;
|
|
@override
|
|
bool get isEnableToolSiteMirrors;
|
|
@override
|
|
String get inputGameLaunchECore;
|
|
@override
|
|
String? get customLauncherPath;
|
|
@override
|
|
String? get customGamePath;
|
|
@override
|
|
int get locationCacheSize;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$SettingsUIStateImplCopyWith<_$SettingsUIStateImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|