mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 11:24:46 +08:00
bump: Flutter 3.32.1 Rust 1.87.0
fix: rsi launcher patch 2.4.0
This commit is contained in:
@ -22,7 +22,7 @@ part 'home_game_login_dialog_ui_model.freezed.dart';
|
||||
part 'home_game_login_dialog_ui_model.g.dart';
|
||||
|
||||
@freezed
|
||||
class HomeGameLoginState with _$HomeGameLoginState {
|
||||
abstract class HomeGameLoginState with _$HomeGameLoginState {
|
||||
factory HomeGameLoginState({
|
||||
required int loginStatus,
|
||||
String? nickname,
|
||||
|
@ -1,3 +1,4 @@
|
||||
// dart format width=80
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint
|
||||
@ -9,121 +10,79 @@ part of 'home_game_login_dialog_ui_model.dart';
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// dart format off
|
||||
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 _$HomeGameLoginState {
|
||||
int get loginStatus => throw _privateConstructorUsedError;
|
||||
String? get nickname => throw _privateConstructorUsedError;
|
||||
String? get avatarUrl => throw _privateConstructorUsedError;
|
||||
String? get authToken => throw _privateConstructorUsedError;
|
||||
String? get webToken => throw _privateConstructorUsedError;
|
||||
Map<dynamic, dynamic>? get releaseInfo => throw _privateConstructorUsedError;
|
||||
RsiGameLibraryData? get libraryData => throw _privateConstructorUsedError;
|
||||
String? get installPath => throw _privateConstructorUsedError;
|
||||
bool? get isDeviceSupportWinHello => throw _privateConstructorUsedError;
|
||||
int get loginStatus;
|
||||
String? get nickname;
|
||||
String? get avatarUrl;
|
||||
String? get authToken;
|
||||
String? get webToken;
|
||||
Map? get releaseInfo;
|
||||
RsiGameLibraryData? get libraryData;
|
||||
String? get installPath;
|
||||
bool? get isDeviceSupportWinHello;
|
||||
|
||||
/// Create a copy of HomeGameLoginState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$HomeGameLoginStateCopyWith<HomeGameLoginState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $HomeGameLoginStateCopyWith<$Res> {
|
||||
factory $HomeGameLoginStateCopyWith(
|
||||
HomeGameLoginState value, $Res Function(HomeGameLoginState) then) =
|
||||
_$HomeGameLoginStateCopyWithImpl<$Res, HomeGameLoginState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{int loginStatus,
|
||||
String? nickname,
|
||||
String? avatarUrl,
|
||||
String? authToken,
|
||||
String? webToken,
|
||||
Map<dynamic, dynamic>? releaseInfo,
|
||||
RsiGameLibraryData? libraryData,
|
||||
String? installPath,
|
||||
bool? isDeviceSupportWinHello});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$HomeGameLoginStateCopyWithImpl<$Res, $Val extends HomeGameLoginState>
|
||||
implements $HomeGameLoginStateCopyWith<$Res> {
|
||||
_$HomeGameLoginStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of HomeGameLoginState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
$HomeGameLoginStateCopyWith<HomeGameLoginState> get copyWith =>
|
||||
_$HomeGameLoginStateCopyWithImpl<HomeGameLoginState>(
|
||||
this as HomeGameLoginState, _$identity);
|
||||
|
||||
@override
|
||||
$Res call({
|
||||
Object? loginStatus = null,
|
||||
Object? nickname = freezed,
|
||||
Object? avatarUrl = freezed,
|
||||
Object? authToken = freezed,
|
||||
Object? webToken = freezed,
|
||||
Object? releaseInfo = freezed,
|
||||
Object? libraryData = freezed,
|
||||
Object? installPath = freezed,
|
||||
Object? isDeviceSupportWinHello = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
loginStatus: null == loginStatus
|
||||
? _value.loginStatus
|
||||
: loginStatus // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
nickname: freezed == nickname
|
||||
? _value.nickname
|
||||
: nickname // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
avatarUrl: freezed == avatarUrl
|
||||
? _value.avatarUrl
|
||||
: avatarUrl // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
authToken: freezed == authToken
|
||||
? _value.authToken
|
||||
: authToken // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
webToken: freezed == webToken
|
||||
? _value.webToken
|
||||
: webToken // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
releaseInfo: freezed == releaseInfo
|
||||
? _value.releaseInfo
|
||||
: releaseInfo // ignore: cast_nullable_to_non_nullable
|
||||
as Map<dynamic, dynamic>?,
|
||||
libraryData: freezed == libraryData
|
||||
? _value.libraryData
|
||||
: libraryData // ignore: cast_nullable_to_non_nullable
|
||||
as RsiGameLibraryData?,
|
||||
installPath: freezed == installPath
|
||||
? _value.installPath
|
||||
: installPath // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
isDeviceSupportWinHello: freezed == isDeviceSupportWinHello
|
||||
? _value.isDeviceSupportWinHello
|
||||
: isDeviceSupportWinHello // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
) as $Val);
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is HomeGameLoginState &&
|
||||
(identical(other.loginStatus, loginStatus) ||
|
||||
other.loginStatus == loginStatus) &&
|
||||
(identical(other.nickname, nickname) ||
|
||||
other.nickname == nickname) &&
|
||||
(identical(other.avatarUrl, avatarUrl) ||
|
||||
other.avatarUrl == avatarUrl) &&
|
||||
(identical(other.authToken, authToken) ||
|
||||
other.authToken == authToken) &&
|
||||
(identical(other.webToken, webToken) ||
|
||||
other.webToken == webToken) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.releaseInfo, releaseInfo) &&
|
||||
(identical(other.libraryData, libraryData) ||
|
||||
other.libraryData == libraryData) &&
|
||||
(identical(other.installPath, installPath) ||
|
||||
other.installPath == installPath) &&
|
||||
(identical(
|
||||
other.isDeviceSupportWinHello, isDeviceSupportWinHello) ||
|
||||
other.isDeviceSupportWinHello == isDeviceSupportWinHello));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
loginStatus,
|
||||
nickname,
|
||||
avatarUrl,
|
||||
authToken,
|
||||
webToken,
|
||||
const DeepCollectionEquality().hash(releaseInfo),
|
||||
libraryData,
|
||||
installPath,
|
||||
isDeviceSupportWinHello);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomeGameLoginState(loginStatus: $loginStatus, nickname: $nickname, avatarUrl: $avatarUrl, authToken: $authToken, webToken: $webToken, releaseInfo: $releaseInfo, libraryData: $libraryData, installPath: $installPath, isDeviceSupportWinHello: $isDeviceSupportWinHello)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$LoginStatusImplCopyWith<$Res>
|
||||
implements $HomeGameLoginStateCopyWith<$Res> {
|
||||
factory _$$LoginStatusImplCopyWith(
|
||||
_$LoginStatusImpl value, $Res Function(_$LoginStatusImpl) then) =
|
||||
__$$LoginStatusImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
abstract mixin class $HomeGameLoginStateCopyWith<$Res> {
|
||||
factory $HomeGameLoginStateCopyWith(
|
||||
HomeGameLoginState value, $Res Function(HomeGameLoginState) _then) =
|
||||
_$HomeGameLoginStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call(
|
||||
{int loginStatus,
|
||||
@ -131,19 +90,19 @@ abstract class _$$LoginStatusImplCopyWith<$Res>
|
||||
String? avatarUrl,
|
||||
String? authToken,
|
||||
String? webToken,
|
||||
Map<dynamic, dynamic>? releaseInfo,
|
||||
Map? releaseInfo,
|
||||
RsiGameLibraryData? libraryData,
|
||||
String? installPath,
|
||||
bool? isDeviceSupportWinHello});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$LoginStatusImplCopyWithImpl<$Res>
|
||||
extends _$HomeGameLoginStateCopyWithImpl<$Res, _$LoginStatusImpl>
|
||||
implements _$$LoginStatusImplCopyWith<$Res> {
|
||||
__$$LoginStatusImplCopyWithImpl(
|
||||
_$LoginStatusImpl _value, $Res Function(_$LoginStatusImpl) _then)
|
||||
: super(_value, _then);
|
||||
class _$HomeGameLoginStateCopyWithImpl<$Res>
|
||||
implements $HomeGameLoginStateCopyWith<$Res> {
|
||||
_$HomeGameLoginStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final HomeGameLoginState _self;
|
||||
final $Res Function(HomeGameLoginState) _then;
|
||||
|
||||
/// Create a copy of HomeGameLoginState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@ -160,41 +119,41 @@ class __$$LoginStatusImplCopyWithImpl<$Res>
|
||||
Object? installPath = freezed,
|
||||
Object? isDeviceSupportWinHello = freezed,
|
||||
}) {
|
||||
return _then(_$LoginStatusImpl(
|
||||
return _then(_self.copyWith(
|
||||
loginStatus: null == loginStatus
|
||||
? _value.loginStatus
|
||||
? _self.loginStatus
|
||||
: loginStatus // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
nickname: freezed == nickname
|
||||
? _value.nickname
|
||||
? _self.nickname
|
||||
: nickname // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
avatarUrl: freezed == avatarUrl
|
||||
? _value.avatarUrl
|
||||
? _self.avatarUrl
|
||||
: avatarUrl // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
authToken: freezed == authToken
|
||||
? _value.authToken
|
||||
? _self.authToken
|
||||
: authToken // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
webToken: freezed == webToken
|
||||
? _value.webToken
|
||||
? _self.webToken
|
||||
: webToken // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
releaseInfo: freezed == releaseInfo
|
||||
? _value._releaseInfo
|
||||
? _self.releaseInfo
|
||||
: releaseInfo // ignore: cast_nullable_to_non_nullable
|
||||
as Map<dynamic, dynamic>?,
|
||||
as Map?,
|
||||
libraryData: freezed == libraryData
|
||||
? _value.libraryData
|
||||
? _self.libraryData
|
||||
: libraryData // ignore: cast_nullable_to_non_nullable
|
||||
as RsiGameLibraryData?,
|
||||
installPath: freezed == installPath
|
||||
? _value.installPath
|
||||
? _self.installPath
|
||||
: installPath // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
isDeviceSupportWinHello: freezed == isDeviceSupportWinHello
|
||||
? _value.isDeviceSupportWinHello
|
||||
? _self.isDeviceSupportWinHello
|
||||
: isDeviceSupportWinHello // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
));
|
||||
@ -203,14 +162,14 @@ class __$$LoginStatusImplCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$LoginStatusImpl implements _LoginStatus {
|
||||
_$LoginStatusImpl(
|
||||
class _LoginStatus implements HomeGameLoginState {
|
||||
_LoginStatus(
|
||||
{required this.loginStatus,
|
||||
this.nickname,
|
||||
this.avatarUrl,
|
||||
this.authToken,
|
||||
this.webToken,
|
||||
final Map<dynamic, dynamic>? releaseInfo,
|
||||
final Map? releaseInfo,
|
||||
this.libraryData,
|
||||
this.installPath,
|
||||
this.isDeviceSupportWinHello})
|
||||
@ -226,9 +185,9 @@ class _$LoginStatusImpl implements _LoginStatus {
|
||||
final String? authToken;
|
||||
@override
|
||||
final String? webToken;
|
||||
final Map<dynamic, dynamic>? _releaseInfo;
|
||||
final Map? _releaseInfo;
|
||||
@override
|
||||
Map<dynamic, dynamic>? get releaseInfo {
|
||||
Map? get releaseInfo {
|
||||
final value = _releaseInfo;
|
||||
if (value == null) return null;
|
||||
if (_releaseInfo is EqualUnmodifiableMapView) return _releaseInfo;
|
||||
@ -243,16 +202,19 @@ class _$LoginStatusImpl implements _LoginStatus {
|
||||
@override
|
||||
final bool? isDeviceSupportWinHello;
|
||||
|
||||
/// Create a copy of HomeGameLoginState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomeGameLoginState(loginStatus: $loginStatus, nickname: $nickname, avatarUrl: $avatarUrl, authToken: $authToken, webToken: $webToken, releaseInfo: $releaseInfo, libraryData: $libraryData, installPath: $installPath, isDeviceSupportWinHello: $isDeviceSupportWinHello)';
|
||||
}
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$LoginStatusCopyWith<_LoginStatus> get copyWith =>
|
||||
__$LoginStatusCopyWithImpl<_LoginStatus>(this, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$LoginStatusImpl &&
|
||||
other is _LoginStatus &&
|
||||
(identical(other.loginStatus, loginStatus) ||
|
||||
other.loginStatus == loginStatus) &&
|
||||
(identical(other.nickname, nickname) ||
|
||||
@ -287,50 +249,93 @@ class _$LoginStatusImpl implements _LoginStatus {
|
||||
installPath,
|
||||
isDeviceSupportWinHello);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomeGameLoginState(loginStatus: $loginStatus, nickname: $nickname, avatarUrl: $avatarUrl, authToken: $authToken, webToken: $webToken, releaseInfo: $releaseInfo, libraryData: $libraryData, installPath: $installPath, isDeviceSupportWinHello: $isDeviceSupportWinHello)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$LoginStatusCopyWith<$Res>
|
||||
implements $HomeGameLoginStateCopyWith<$Res> {
|
||||
factory _$LoginStatusCopyWith(
|
||||
_LoginStatus value, $Res Function(_LoginStatus) _then) =
|
||||
__$LoginStatusCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{int loginStatus,
|
||||
String? nickname,
|
||||
String? avatarUrl,
|
||||
String? authToken,
|
||||
String? webToken,
|
||||
Map? releaseInfo,
|
||||
RsiGameLibraryData? libraryData,
|
||||
String? installPath,
|
||||
bool? isDeviceSupportWinHello});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$LoginStatusCopyWithImpl<$Res> implements _$LoginStatusCopyWith<$Res> {
|
||||
__$LoginStatusCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _LoginStatus _self;
|
||||
final $Res Function(_LoginStatus) _then;
|
||||
|
||||
/// Create a copy of HomeGameLoginState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$LoginStatusImplCopyWith<_$LoginStatusImpl> get copyWith =>
|
||||
__$$LoginStatusImplCopyWithImpl<_$LoginStatusImpl>(this, _$identity);
|
||||
$Res call({
|
||||
Object? loginStatus = null,
|
||||
Object? nickname = freezed,
|
||||
Object? avatarUrl = freezed,
|
||||
Object? authToken = freezed,
|
||||
Object? webToken = freezed,
|
||||
Object? releaseInfo = freezed,
|
||||
Object? libraryData = freezed,
|
||||
Object? installPath = freezed,
|
||||
Object? isDeviceSupportWinHello = freezed,
|
||||
}) {
|
||||
return _then(_LoginStatus(
|
||||
loginStatus: null == loginStatus
|
||||
? _self.loginStatus
|
||||
: loginStatus // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
nickname: freezed == nickname
|
||||
? _self.nickname
|
||||
: nickname // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
avatarUrl: freezed == avatarUrl
|
||||
? _self.avatarUrl
|
||||
: avatarUrl // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
authToken: freezed == authToken
|
||||
? _self.authToken
|
||||
: authToken // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
webToken: freezed == webToken
|
||||
? _self.webToken
|
||||
: webToken // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
releaseInfo: freezed == releaseInfo
|
||||
? _self._releaseInfo
|
||||
: releaseInfo // ignore: cast_nullable_to_non_nullable
|
||||
as Map?,
|
||||
libraryData: freezed == libraryData
|
||||
? _self.libraryData
|
||||
: libraryData // ignore: cast_nullable_to_non_nullable
|
||||
as RsiGameLibraryData?,
|
||||
installPath: freezed == installPath
|
||||
? _self.installPath
|
||||
: installPath // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
isDeviceSupportWinHello: freezed == isDeviceSupportWinHello
|
||||
? _self.isDeviceSupportWinHello
|
||||
: isDeviceSupportWinHello // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _LoginStatus implements HomeGameLoginState {
|
||||
factory _LoginStatus(
|
||||
{required final int loginStatus,
|
||||
final String? nickname,
|
||||
final String? avatarUrl,
|
||||
final String? authToken,
|
||||
final String? webToken,
|
||||
final Map<dynamic, dynamic>? releaseInfo,
|
||||
final RsiGameLibraryData? libraryData,
|
||||
final String? installPath,
|
||||
final bool? isDeviceSupportWinHello}) = _$LoginStatusImpl;
|
||||
|
||||
@override
|
||||
int get loginStatus;
|
||||
@override
|
||||
String? get nickname;
|
||||
@override
|
||||
String? get avatarUrl;
|
||||
@override
|
||||
String? get authToken;
|
||||
@override
|
||||
String? get webToken;
|
||||
@override
|
||||
Map<dynamic, dynamic>? get releaseInfo;
|
||||
@override
|
||||
RsiGameLibraryData? get libraryData;
|
||||
@override
|
||||
String? get installPath;
|
||||
@override
|
||||
bool? get isDeviceSupportWinHello;
|
||||
|
||||
/// Create a copy of HomeGameLoginState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$LoginStatusImplCopyWith<_$LoginStatusImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
// dart format on
|
||||
|
@ -20,7 +20,7 @@ part 'home_downloader_ui_model.g.dart';
|
||||
part 'home_downloader_ui_model.freezed.dart';
|
||||
|
||||
@freezed
|
||||
class HomeDownloaderUIState with _$HomeDownloaderUIState {
|
||||
abstract class HomeDownloaderUIState with _$HomeDownloaderUIState {
|
||||
factory HomeDownloaderUIState({
|
||||
@Default([]) List<Aria2Task> tasks,
|
||||
@Default([]) List<Aria2Task> waitingTasks,
|
||||
|
@ -1,3 +1,4 @@
|
||||
// dart format width=80
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint
|
||||
@ -9,88 +10,57 @@ part of 'home_downloader_ui_model.dart';
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// dart format off
|
||||
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 _$HomeDownloaderUIState {
|
||||
List<Aria2Task> get tasks => throw _privateConstructorUsedError;
|
||||
List<Aria2Task> get waitingTasks => throw _privateConstructorUsedError;
|
||||
List<Aria2Task> get stoppedTasks => throw _privateConstructorUsedError;
|
||||
Aria2GlobalStat? get globalStat => throw _privateConstructorUsedError;
|
||||
List<Aria2Task> get tasks;
|
||||
List<Aria2Task> get waitingTasks;
|
||||
List<Aria2Task> get stoppedTasks;
|
||||
Aria2GlobalStat? get globalStat;
|
||||
|
||||
/// Create a copy of HomeDownloaderUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$HomeDownloaderUIStateCopyWith<HomeDownloaderUIState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $HomeDownloaderUIStateCopyWith<$Res> {
|
||||
factory $HomeDownloaderUIStateCopyWith(HomeDownloaderUIState value,
|
||||
$Res Function(HomeDownloaderUIState) then) =
|
||||
_$HomeDownloaderUIStateCopyWithImpl<$Res, HomeDownloaderUIState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{List<Aria2Task> tasks,
|
||||
List<Aria2Task> waitingTasks,
|
||||
List<Aria2Task> stoppedTasks,
|
||||
Aria2GlobalStat? globalStat});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$HomeDownloaderUIStateCopyWithImpl<$Res,
|
||||
$Val extends HomeDownloaderUIState>
|
||||
implements $HomeDownloaderUIStateCopyWith<$Res> {
|
||||
_$HomeDownloaderUIStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of HomeDownloaderUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
$HomeDownloaderUIStateCopyWith<HomeDownloaderUIState> get copyWith =>
|
||||
_$HomeDownloaderUIStateCopyWithImpl<HomeDownloaderUIState>(
|
||||
this as HomeDownloaderUIState, _$identity);
|
||||
|
||||
@override
|
||||
$Res call({
|
||||
Object? tasks = null,
|
||||
Object? waitingTasks = null,
|
||||
Object? stoppedTasks = null,
|
||||
Object? globalStat = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
tasks: null == tasks
|
||||
? _value.tasks
|
||||
: tasks // ignore: cast_nullable_to_non_nullable
|
||||
as List<Aria2Task>,
|
||||
waitingTasks: null == waitingTasks
|
||||
? _value.waitingTasks
|
||||
: waitingTasks // ignore: cast_nullable_to_non_nullable
|
||||
as List<Aria2Task>,
|
||||
stoppedTasks: null == stoppedTasks
|
||||
? _value.stoppedTasks
|
||||
: stoppedTasks // ignore: cast_nullable_to_non_nullable
|
||||
as List<Aria2Task>,
|
||||
globalStat: freezed == globalStat
|
||||
? _value.globalStat
|
||||
: globalStat // ignore: cast_nullable_to_non_nullable
|
||||
as Aria2GlobalStat?,
|
||||
) as $Val);
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is HomeDownloaderUIState &&
|
||||
const DeepCollectionEquality().equals(other.tasks, tasks) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.waitingTasks, waitingTasks) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.stoppedTasks, stoppedTasks) &&
|
||||
(identical(other.globalStat, globalStat) ||
|
||||
other.globalStat == globalStat));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
const DeepCollectionEquality().hash(tasks),
|
||||
const DeepCollectionEquality().hash(waitingTasks),
|
||||
const DeepCollectionEquality().hash(stoppedTasks),
|
||||
globalStat);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomeDownloaderUIState(tasks: $tasks, waitingTasks: $waitingTasks, stoppedTasks: $stoppedTasks, globalStat: $globalStat)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$HomeDownloaderUIStateImplCopyWith<$Res>
|
||||
implements $HomeDownloaderUIStateCopyWith<$Res> {
|
||||
factory _$$HomeDownloaderUIStateImplCopyWith(
|
||||
_$HomeDownloaderUIStateImpl value,
|
||||
$Res Function(_$HomeDownloaderUIStateImpl) then) =
|
||||
__$$HomeDownloaderUIStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
abstract mixin class $HomeDownloaderUIStateCopyWith<$Res> {
|
||||
factory $HomeDownloaderUIStateCopyWith(HomeDownloaderUIState value,
|
||||
$Res Function(HomeDownloaderUIState) _then) =
|
||||
_$HomeDownloaderUIStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call(
|
||||
{List<Aria2Task> tasks,
|
||||
@ -100,13 +70,12 @@ abstract class _$$HomeDownloaderUIStateImplCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$HomeDownloaderUIStateImplCopyWithImpl<$Res>
|
||||
extends _$HomeDownloaderUIStateCopyWithImpl<$Res,
|
||||
_$HomeDownloaderUIStateImpl>
|
||||
implements _$$HomeDownloaderUIStateImplCopyWith<$Res> {
|
||||
__$$HomeDownloaderUIStateImplCopyWithImpl(_$HomeDownloaderUIStateImpl _value,
|
||||
$Res Function(_$HomeDownloaderUIStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
class _$HomeDownloaderUIStateCopyWithImpl<$Res>
|
||||
implements $HomeDownloaderUIStateCopyWith<$Res> {
|
||||
_$HomeDownloaderUIStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final HomeDownloaderUIState _self;
|
||||
final $Res Function(HomeDownloaderUIState) _then;
|
||||
|
||||
/// Create a copy of HomeDownloaderUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@ -118,21 +87,21 @@ class __$$HomeDownloaderUIStateImplCopyWithImpl<$Res>
|
||||
Object? stoppedTasks = null,
|
||||
Object? globalStat = freezed,
|
||||
}) {
|
||||
return _then(_$HomeDownloaderUIStateImpl(
|
||||
return _then(_self.copyWith(
|
||||
tasks: null == tasks
|
||||
? _value._tasks
|
||||
? _self.tasks
|
||||
: tasks // ignore: cast_nullable_to_non_nullable
|
||||
as List<Aria2Task>,
|
||||
waitingTasks: null == waitingTasks
|
||||
? _value._waitingTasks
|
||||
? _self.waitingTasks
|
||||
: waitingTasks // ignore: cast_nullable_to_non_nullable
|
||||
as List<Aria2Task>,
|
||||
stoppedTasks: null == stoppedTasks
|
||||
? _value._stoppedTasks
|
||||
? _self.stoppedTasks
|
||||
: stoppedTasks // ignore: cast_nullable_to_non_nullable
|
||||
as List<Aria2Task>,
|
||||
globalStat: freezed == globalStat
|
||||
? _value.globalStat
|
||||
? _self.globalStat
|
||||
: globalStat // ignore: cast_nullable_to_non_nullable
|
||||
as Aria2GlobalStat?,
|
||||
));
|
||||
@ -141,8 +110,8 @@ class __$$HomeDownloaderUIStateImplCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$HomeDownloaderUIStateImpl implements _HomeDownloaderUIState {
|
||||
_$HomeDownloaderUIStateImpl(
|
||||
class _HomeDownloaderUIState implements HomeDownloaderUIState {
|
||||
_HomeDownloaderUIState(
|
||||
{final List<Aria2Task> tasks = const [],
|
||||
final List<Aria2Task> waitingTasks = const [],
|
||||
final List<Aria2Task> stoppedTasks = const [],
|
||||
@ -181,16 +150,20 @@ class _$HomeDownloaderUIStateImpl implements _HomeDownloaderUIState {
|
||||
@override
|
||||
final Aria2GlobalStat? globalStat;
|
||||
|
||||
/// Create a copy of HomeDownloaderUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomeDownloaderUIState(tasks: $tasks, waitingTasks: $waitingTasks, stoppedTasks: $stoppedTasks, globalStat: $globalStat)';
|
||||
}
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$HomeDownloaderUIStateCopyWith<_HomeDownloaderUIState> get copyWith =>
|
||||
__$HomeDownloaderUIStateCopyWithImpl<_HomeDownloaderUIState>(
|
||||
this, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$HomeDownloaderUIStateImpl &&
|
||||
other is _HomeDownloaderUIState &&
|
||||
const DeepCollectionEquality().equals(other._tasks, _tasks) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other._waitingTasks, _waitingTasks) &&
|
||||
@ -208,36 +181,64 @@ class _$HomeDownloaderUIStateImpl implements _HomeDownloaderUIState {
|
||||
const DeepCollectionEquality().hash(_stoppedTasks),
|
||||
globalStat);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomeDownloaderUIState(tasks: $tasks, waitingTasks: $waitingTasks, stoppedTasks: $stoppedTasks, globalStat: $globalStat)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$HomeDownloaderUIStateCopyWith<$Res>
|
||||
implements $HomeDownloaderUIStateCopyWith<$Res> {
|
||||
factory _$HomeDownloaderUIStateCopyWith(_HomeDownloaderUIState value,
|
||||
$Res Function(_HomeDownloaderUIState) _then) =
|
||||
__$HomeDownloaderUIStateCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{List<Aria2Task> tasks,
|
||||
List<Aria2Task> waitingTasks,
|
||||
List<Aria2Task> stoppedTasks,
|
||||
Aria2GlobalStat? globalStat});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$HomeDownloaderUIStateCopyWithImpl<$Res>
|
||||
implements _$HomeDownloaderUIStateCopyWith<$Res> {
|
||||
__$HomeDownloaderUIStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _HomeDownloaderUIState _self;
|
||||
final $Res Function(_HomeDownloaderUIState) _then;
|
||||
|
||||
/// Create a copy of HomeDownloaderUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$HomeDownloaderUIStateImplCopyWith<_$HomeDownloaderUIStateImpl>
|
||||
get copyWith => __$$HomeDownloaderUIStateImplCopyWithImpl<
|
||||
_$HomeDownloaderUIStateImpl>(this, _$identity);
|
||||
$Res call({
|
||||
Object? tasks = null,
|
||||
Object? waitingTasks = null,
|
||||
Object? stoppedTasks = null,
|
||||
Object? globalStat = freezed,
|
||||
}) {
|
||||
return _then(_HomeDownloaderUIState(
|
||||
tasks: null == tasks
|
||||
? _self._tasks
|
||||
: tasks // ignore: cast_nullable_to_non_nullable
|
||||
as List<Aria2Task>,
|
||||
waitingTasks: null == waitingTasks
|
||||
? _self._waitingTasks
|
||||
: waitingTasks // ignore: cast_nullable_to_non_nullable
|
||||
as List<Aria2Task>,
|
||||
stoppedTasks: null == stoppedTasks
|
||||
? _self._stoppedTasks
|
||||
: stoppedTasks // ignore: cast_nullable_to_non_nullable
|
||||
as List<Aria2Task>,
|
||||
globalStat: freezed == globalStat
|
||||
? _self.globalStat
|
||||
: globalStat // ignore: cast_nullable_to_non_nullable
|
||||
as Aria2GlobalStat?,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _HomeDownloaderUIState implements HomeDownloaderUIState {
|
||||
factory _HomeDownloaderUIState(
|
||||
{final List<Aria2Task> tasks,
|
||||
final List<Aria2Task> waitingTasks,
|
||||
final List<Aria2Task> stoppedTasks,
|
||||
final Aria2GlobalStat? globalStat}) = _$HomeDownloaderUIStateImpl;
|
||||
|
||||
@override
|
||||
List<Aria2Task> get tasks;
|
||||
@override
|
||||
List<Aria2Task> get waitingTasks;
|
||||
@override
|
||||
List<Aria2Task> get stoppedTasks;
|
||||
@override
|
||||
Aria2GlobalStat? get globalStat;
|
||||
|
||||
/// Create a copy of HomeDownloaderUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$HomeDownloaderUIStateImplCopyWith<_$HomeDownloaderUIStateImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
// dart format on
|
||||
|
@ -16,7 +16,7 @@ part 'game_doctor_ui_model.g.dart';
|
||||
part 'game_doctor_ui_model.freezed.dart';
|
||||
|
||||
@freezed
|
||||
class HomeGameDoctorState with _$HomeGameDoctorState {
|
||||
abstract class HomeGameDoctorState with _$HomeGameDoctorState {
|
||||
factory HomeGameDoctorState({
|
||||
@Default(false) bool isChecking,
|
||||
@Default(false) bool isFixing,
|
||||
|
@ -1,3 +1,4 @@
|
||||
// dart format width=80
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint
|
||||
@ -9,94 +10,62 @@ part of 'game_doctor_ui_model.dart';
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// dart format off
|
||||
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 _$HomeGameDoctorState {
|
||||
bool get isChecking => throw _privateConstructorUsedError;
|
||||
bool get isFixing => throw _privateConstructorUsedError;
|
||||
String get lastScreenInfo => throw _privateConstructorUsedError;
|
||||
String get isFixingString => throw _privateConstructorUsedError;
|
||||
List<MapEntry<String, String>>? get checkResult =>
|
||||
throw _privateConstructorUsedError;
|
||||
bool get isChecking;
|
||||
bool get isFixing;
|
||||
String get lastScreenInfo;
|
||||
String get isFixingString;
|
||||
List<MapEntry<String, String>>? get checkResult;
|
||||
|
||||
/// Create a copy of HomeGameDoctorState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$HomeGameDoctorStateCopyWith<HomeGameDoctorState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $HomeGameDoctorStateCopyWith<$Res> {
|
||||
factory $HomeGameDoctorStateCopyWith(
|
||||
HomeGameDoctorState value, $Res Function(HomeGameDoctorState) then) =
|
||||
_$HomeGameDoctorStateCopyWithImpl<$Res, HomeGameDoctorState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool isChecking,
|
||||
bool isFixing,
|
||||
String lastScreenInfo,
|
||||
String isFixingString,
|
||||
List<MapEntry<String, String>>? checkResult});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$HomeGameDoctorStateCopyWithImpl<$Res, $Val extends HomeGameDoctorState>
|
||||
implements $HomeGameDoctorStateCopyWith<$Res> {
|
||||
_$HomeGameDoctorStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of HomeGameDoctorState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
$HomeGameDoctorStateCopyWith<HomeGameDoctorState> get copyWith =>
|
||||
_$HomeGameDoctorStateCopyWithImpl<HomeGameDoctorState>(
|
||||
this as HomeGameDoctorState, _$identity);
|
||||
|
||||
@override
|
||||
$Res call({
|
||||
Object? isChecking = null,
|
||||
Object? isFixing = null,
|
||||
Object? lastScreenInfo = null,
|
||||
Object? isFixingString = null,
|
||||
Object? checkResult = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
isChecking: null == isChecking
|
||||
? _value.isChecking
|
||||
: isChecking // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isFixing: null == isFixing
|
||||
? _value.isFixing
|
||||
: isFixing // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
lastScreenInfo: null == lastScreenInfo
|
||||
? _value.lastScreenInfo
|
||||
: lastScreenInfo // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
isFixingString: null == isFixingString
|
||||
? _value.isFixingString
|
||||
: isFixingString // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
checkResult: freezed == checkResult
|
||||
? _value.checkResult
|
||||
: checkResult // ignore: cast_nullable_to_non_nullable
|
||||
as List<MapEntry<String, String>>?,
|
||||
) as $Val);
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is HomeGameDoctorState &&
|
||||
(identical(other.isChecking, isChecking) ||
|
||||
other.isChecking == isChecking) &&
|
||||
(identical(other.isFixing, isFixing) ||
|
||||
other.isFixing == isFixing) &&
|
||||
(identical(other.lastScreenInfo, lastScreenInfo) ||
|
||||
other.lastScreenInfo == lastScreenInfo) &&
|
||||
(identical(other.isFixingString, isFixingString) ||
|
||||
other.isFixingString == isFixingString) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.checkResult, checkResult));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
isChecking,
|
||||
isFixing,
|
||||
lastScreenInfo,
|
||||
isFixingString,
|
||||
const DeepCollectionEquality().hash(checkResult));
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomeGameDoctorState(isChecking: $isChecking, isFixing: $isFixing, lastScreenInfo: $lastScreenInfo, isFixingString: $isFixingString, checkResult: $checkResult)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$HomeGameDoctorStateImplCopyWith<$Res>
|
||||
implements $HomeGameDoctorStateCopyWith<$Res> {
|
||||
factory _$$HomeGameDoctorStateImplCopyWith(_$HomeGameDoctorStateImpl value,
|
||||
$Res Function(_$HomeGameDoctorStateImpl) then) =
|
||||
__$$HomeGameDoctorStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
abstract mixin class $HomeGameDoctorStateCopyWith<$Res> {
|
||||
factory $HomeGameDoctorStateCopyWith(
|
||||
HomeGameDoctorState value, $Res Function(HomeGameDoctorState) _then) =
|
||||
_$HomeGameDoctorStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool isChecking,
|
||||
@ -107,12 +76,12 @@ abstract class _$$HomeGameDoctorStateImplCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$HomeGameDoctorStateImplCopyWithImpl<$Res>
|
||||
extends _$HomeGameDoctorStateCopyWithImpl<$Res, _$HomeGameDoctorStateImpl>
|
||||
implements _$$HomeGameDoctorStateImplCopyWith<$Res> {
|
||||
__$$HomeGameDoctorStateImplCopyWithImpl(_$HomeGameDoctorStateImpl _value,
|
||||
$Res Function(_$HomeGameDoctorStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
class _$HomeGameDoctorStateCopyWithImpl<$Res>
|
||||
implements $HomeGameDoctorStateCopyWith<$Res> {
|
||||
_$HomeGameDoctorStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final HomeGameDoctorState _self;
|
||||
final $Res Function(HomeGameDoctorState) _then;
|
||||
|
||||
/// Create a copy of HomeGameDoctorState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@ -125,25 +94,25 @@ class __$$HomeGameDoctorStateImplCopyWithImpl<$Res>
|
||||
Object? isFixingString = null,
|
||||
Object? checkResult = freezed,
|
||||
}) {
|
||||
return _then(_$HomeGameDoctorStateImpl(
|
||||
return _then(_self.copyWith(
|
||||
isChecking: null == isChecking
|
||||
? _value.isChecking
|
||||
? _self.isChecking
|
||||
: isChecking // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isFixing: null == isFixing
|
||||
? _value.isFixing
|
||||
? _self.isFixing
|
||||
: isFixing // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
lastScreenInfo: null == lastScreenInfo
|
||||
? _value.lastScreenInfo
|
||||
? _self.lastScreenInfo
|
||||
: lastScreenInfo // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
isFixingString: null == isFixingString
|
||||
? _value.isFixingString
|
||||
? _self.isFixingString
|
||||
: isFixingString // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
checkResult: freezed == checkResult
|
||||
? _value._checkResult
|
||||
? _self.checkResult
|
||||
: checkResult // ignore: cast_nullable_to_non_nullable
|
||||
as List<MapEntry<String, String>>?,
|
||||
));
|
||||
@ -152,8 +121,8 @@ class __$$HomeGameDoctorStateImplCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$HomeGameDoctorStateImpl implements _HomeGameDoctorState {
|
||||
_$HomeGameDoctorStateImpl(
|
||||
class _HomeGameDoctorState implements HomeGameDoctorState {
|
||||
_HomeGameDoctorState(
|
||||
{this.isChecking = false,
|
||||
this.isFixing = false,
|
||||
this.lastScreenInfo = "",
|
||||
@ -183,16 +152,20 @@ class _$HomeGameDoctorStateImpl implements _HomeGameDoctorState {
|
||||
return EqualUnmodifiableListView(value);
|
||||
}
|
||||
|
||||
/// Create a copy of HomeGameDoctorState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomeGameDoctorState(isChecking: $isChecking, isFixing: $isFixing, lastScreenInfo: $lastScreenInfo, isFixingString: $isFixingString, checkResult: $checkResult)';
|
||||
}
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$HomeGameDoctorStateCopyWith<_HomeGameDoctorState> get copyWith =>
|
||||
__$HomeGameDoctorStateCopyWithImpl<_HomeGameDoctorState>(
|
||||
this, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$HomeGameDoctorStateImpl &&
|
||||
other is _HomeGameDoctorState &&
|
||||
(identical(other.isChecking, isChecking) ||
|
||||
other.isChecking == isChecking) &&
|
||||
(identical(other.isFixing, isFixing) ||
|
||||
@ -214,40 +187,70 @@ class _$HomeGameDoctorStateImpl implements _HomeGameDoctorState {
|
||||
isFixingString,
|
||||
const DeepCollectionEquality().hash(_checkResult));
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomeGameDoctorState(isChecking: $isChecking, isFixing: $isFixing, lastScreenInfo: $lastScreenInfo, isFixingString: $isFixingString, checkResult: $checkResult)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$HomeGameDoctorStateCopyWith<$Res>
|
||||
implements $HomeGameDoctorStateCopyWith<$Res> {
|
||||
factory _$HomeGameDoctorStateCopyWith(_HomeGameDoctorState value,
|
||||
$Res Function(_HomeGameDoctorState) _then) =
|
||||
__$HomeGameDoctorStateCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool isChecking,
|
||||
bool isFixing,
|
||||
String lastScreenInfo,
|
||||
String isFixingString,
|
||||
List<MapEntry<String, String>>? checkResult});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$HomeGameDoctorStateCopyWithImpl<$Res>
|
||||
implements _$HomeGameDoctorStateCopyWith<$Res> {
|
||||
__$HomeGameDoctorStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _HomeGameDoctorState _self;
|
||||
final $Res Function(_HomeGameDoctorState) _then;
|
||||
|
||||
/// Create a copy of HomeGameDoctorState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$HomeGameDoctorStateImplCopyWith<_$HomeGameDoctorStateImpl> get copyWith =>
|
||||
__$$HomeGameDoctorStateImplCopyWithImpl<_$HomeGameDoctorStateImpl>(
|
||||
this, _$identity);
|
||||
$Res call({
|
||||
Object? isChecking = null,
|
||||
Object? isFixing = null,
|
||||
Object? lastScreenInfo = null,
|
||||
Object? isFixingString = null,
|
||||
Object? checkResult = freezed,
|
||||
}) {
|
||||
return _then(_HomeGameDoctorState(
|
||||
isChecking: null == isChecking
|
||||
? _self.isChecking
|
||||
: isChecking // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isFixing: null == isFixing
|
||||
? _self.isFixing
|
||||
: isFixing // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
lastScreenInfo: null == lastScreenInfo
|
||||
? _self.lastScreenInfo
|
||||
: lastScreenInfo // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
isFixingString: null == isFixingString
|
||||
? _self.isFixingString
|
||||
: isFixingString // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
checkResult: freezed == checkResult
|
||||
? _self._checkResult
|
||||
: checkResult // ignore: cast_nullable_to_non_nullable
|
||||
as List<MapEntry<String, String>>?,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _HomeGameDoctorState implements HomeGameDoctorState {
|
||||
factory _HomeGameDoctorState(
|
||||
{final bool isChecking,
|
||||
final bool isFixing,
|
||||
final String lastScreenInfo,
|
||||
final String isFixingString,
|
||||
final List<MapEntry<String, String>>? checkResult}) =
|
||||
_$HomeGameDoctorStateImpl;
|
||||
|
||||
@override
|
||||
bool get isChecking;
|
||||
@override
|
||||
bool get isFixing;
|
||||
@override
|
||||
String get lastScreenInfo;
|
||||
@override
|
||||
String get isFixingString;
|
||||
@override
|
||||
List<MapEntry<String, String>>? get checkResult;
|
||||
|
||||
/// Create a copy of HomeGameDoctorState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$HomeGameDoctorStateImplCopyWith<_$HomeGameDoctorStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
// dart format on
|
||||
|
@ -37,7 +37,7 @@ part 'home_ui_model.freezed.dart';
|
||||
part 'home_ui_model.g.dart';
|
||||
|
||||
@freezed
|
||||
class HomeUIModelState with _$HomeUIModelState {
|
||||
abstract class HomeUIModelState with _$HomeUIModelState {
|
||||
factory HomeUIModelState({
|
||||
AppPlacardData? appPlacardData,
|
||||
@Default(false) bool isFixing,
|
||||
|
@ -1,3 +1,4 @@
|
||||
// dart format width=80
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint
|
||||
@ -9,152 +10,96 @@ part of 'home_ui_model.dart';
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// dart format off
|
||||
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 _$HomeUIModelState {
|
||||
AppPlacardData? get appPlacardData => throw _privateConstructorUsedError;
|
||||
bool get isFixing => throw _privateConstructorUsedError;
|
||||
String get isFixingString => throw _privateConstructorUsedError;
|
||||
String? get scInstalledPath => throw _privateConstructorUsedError;
|
||||
List<String> get scInstallPaths => throw _privateConstructorUsedError;
|
||||
AppWebLocalizationVersionsData? get webLocalizationVersionsData =>
|
||||
throw _privateConstructorUsedError;
|
||||
String get lastScreenInfo => throw _privateConstructorUsedError;
|
||||
List<RssItem>? get rssVideoItems => throw _privateConstructorUsedError;
|
||||
List<RssItem>? get rssTextItems => throw _privateConstructorUsedError;
|
||||
MapEntry<String, bool>? get localizationUpdateInfo =>
|
||||
throw _privateConstructorUsedError;
|
||||
List<dynamic>? get scServerStatus => throw _privateConstructorUsedError;
|
||||
List<CountdownFestivalItemData>? get countdownFestivalListData =>
|
||||
throw _privateConstructorUsedError;
|
||||
Map<String, bool> get isGameRunning => throw _privateConstructorUsedError;
|
||||
AppPlacardData? get appPlacardData;
|
||||
bool get isFixing;
|
||||
String get isFixingString;
|
||||
String? get scInstalledPath;
|
||||
List<String> get scInstallPaths;
|
||||
AppWebLocalizationVersionsData? get webLocalizationVersionsData;
|
||||
String get lastScreenInfo;
|
||||
List<RssItem>? get rssVideoItems;
|
||||
List<RssItem>? get rssTextItems;
|
||||
MapEntry<String, bool>? get localizationUpdateInfo;
|
||||
List? get scServerStatus;
|
||||
List<CountdownFestivalItemData>? get countdownFestivalListData;
|
||||
Map<String, bool> get isGameRunning;
|
||||
|
||||
/// Create a copy of HomeUIModelState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$HomeUIModelStateCopyWith<HomeUIModelState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $HomeUIModelStateCopyWith<$Res> {
|
||||
factory $HomeUIModelStateCopyWith(
|
||||
HomeUIModelState value, $Res Function(HomeUIModelState) then) =
|
||||
_$HomeUIModelStateCopyWithImpl<$Res, HomeUIModelState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{AppPlacardData? appPlacardData,
|
||||
bool isFixing,
|
||||
String isFixingString,
|
||||
String? scInstalledPath,
|
||||
List<String> scInstallPaths,
|
||||
AppWebLocalizationVersionsData? webLocalizationVersionsData,
|
||||
String lastScreenInfo,
|
||||
List<RssItem>? rssVideoItems,
|
||||
List<RssItem>? rssTextItems,
|
||||
MapEntry<String, bool>? localizationUpdateInfo,
|
||||
List<dynamic>? scServerStatus,
|
||||
List<CountdownFestivalItemData>? countdownFestivalListData,
|
||||
Map<String, bool> isGameRunning});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$HomeUIModelStateCopyWithImpl<$Res, $Val extends HomeUIModelState>
|
||||
implements $HomeUIModelStateCopyWith<$Res> {
|
||||
_$HomeUIModelStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of HomeUIModelState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
$HomeUIModelStateCopyWith<HomeUIModelState> get copyWith =>
|
||||
_$HomeUIModelStateCopyWithImpl<HomeUIModelState>(
|
||||
this as HomeUIModelState, _$identity);
|
||||
|
||||
@override
|
||||
$Res call({
|
||||
Object? appPlacardData = freezed,
|
||||
Object? isFixing = null,
|
||||
Object? isFixingString = null,
|
||||
Object? scInstalledPath = freezed,
|
||||
Object? scInstallPaths = null,
|
||||
Object? webLocalizationVersionsData = freezed,
|
||||
Object? lastScreenInfo = null,
|
||||
Object? rssVideoItems = freezed,
|
||||
Object? rssTextItems = freezed,
|
||||
Object? localizationUpdateInfo = freezed,
|
||||
Object? scServerStatus = freezed,
|
||||
Object? countdownFestivalListData = freezed,
|
||||
Object? isGameRunning = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
appPlacardData: freezed == appPlacardData
|
||||
? _value.appPlacardData
|
||||
: appPlacardData // ignore: cast_nullable_to_non_nullable
|
||||
as AppPlacardData?,
|
||||
isFixing: null == isFixing
|
||||
? _value.isFixing
|
||||
: isFixing // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isFixingString: null == isFixingString
|
||||
? _value.isFixingString
|
||||
: isFixingString // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
scInstalledPath: freezed == scInstalledPath
|
||||
? _value.scInstalledPath
|
||||
: scInstalledPath // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
scInstallPaths: null == scInstallPaths
|
||||
? _value.scInstallPaths
|
||||
: scInstallPaths // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
webLocalizationVersionsData: freezed == webLocalizationVersionsData
|
||||
? _value.webLocalizationVersionsData
|
||||
: webLocalizationVersionsData // ignore: cast_nullable_to_non_nullable
|
||||
as AppWebLocalizationVersionsData?,
|
||||
lastScreenInfo: null == lastScreenInfo
|
||||
? _value.lastScreenInfo
|
||||
: lastScreenInfo // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
rssVideoItems: freezed == rssVideoItems
|
||||
? _value.rssVideoItems
|
||||
: rssVideoItems // ignore: cast_nullable_to_non_nullable
|
||||
as List<RssItem>?,
|
||||
rssTextItems: freezed == rssTextItems
|
||||
? _value.rssTextItems
|
||||
: rssTextItems // ignore: cast_nullable_to_non_nullable
|
||||
as List<RssItem>?,
|
||||
localizationUpdateInfo: freezed == localizationUpdateInfo
|
||||
? _value.localizationUpdateInfo
|
||||
: localizationUpdateInfo // ignore: cast_nullable_to_non_nullable
|
||||
as MapEntry<String, bool>?,
|
||||
scServerStatus: freezed == scServerStatus
|
||||
? _value.scServerStatus
|
||||
: scServerStatus // ignore: cast_nullable_to_non_nullable
|
||||
as List<dynamic>?,
|
||||
countdownFestivalListData: freezed == countdownFestivalListData
|
||||
? _value.countdownFestivalListData
|
||||
: countdownFestivalListData // ignore: cast_nullable_to_non_nullable
|
||||
as List<CountdownFestivalItemData>?,
|
||||
isGameRunning: null == isGameRunning
|
||||
? _value.isGameRunning
|
||||
: isGameRunning // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, bool>,
|
||||
) as $Val);
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is HomeUIModelState &&
|
||||
(identical(other.appPlacardData, appPlacardData) ||
|
||||
other.appPlacardData == appPlacardData) &&
|
||||
(identical(other.isFixing, isFixing) ||
|
||||
other.isFixing == isFixing) &&
|
||||
(identical(other.isFixingString, isFixingString) ||
|
||||
other.isFixingString == isFixingString) &&
|
||||
(identical(other.scInstalledPath, scInstalledPath) ||
|
||||
other.scInstalledPath == scInstalledPath) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.scInstallPaths, scInstallPaths) &&
|
||||
(identical(other.webLocalizationVersionsData,
|
||||
webLocalizationVersionsData) ||
|
||||
other.webLocalizationVersionsData ==
|
||||
webLocalizationVersionsData) &&
|
||||
(identical(other.lastScreenInfo, lastScreenInfo) ||
|
||||
other.lastScreenInfo == lastScreenInfo) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.rssVideoItems, rssVideoItems) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.rssTextItems, rssTextItems) &&
|
||||
(identical(other.localizationUpdateInfo, localizationUpdateInfo) ||
|
||||
other.localizationUpdateInfo == localizationUpdateInfo) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.scServerStatus, scServerStatus) &&
|
||||
const DeepCollectionEquality().equals(
|
||||
other.countdownFestivalListData, countdownFestivalListData) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.isGameRunning, isGameRunning));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
appPlacardData,
|
||||
isFixing,
|
||||
isFixingString,
|
||||
scInstalledPath,
|
||||
const DeepCollectionEquality().hash(scInstallPaths),
|
||||
webLocalizationVersionsData,
|
||||
lastScreenInfo,
|
||||
const DeepCollectionEquality().hash(rssVideoItems),
|
||||
const DeepCollectionEquality().hash(rssTextItems),
|
||||
localizationUpdateInfo,
|
||||
const DeepCollectionEquality().hash(scServerStatus),
|
||||
const DeepCollectionEquality().hash(countdownFestivalListData),
|
||||
const DeepCollectionEquality().hash(isGameRunning));
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomeUIModelState(appPlacardData: $appPlacardData, isFixing: $isFixing, isFixingString: $isFixingString, scInstalledPath: $scInstalledPath, scInstallPaths: $scInstallPaths, webLocalizationVersionsData: $webLocalizationVersionsData, lastScreenInfo: $lastScreenInfo, rssVideoItems: $rssVideoItems, rssTextItems: $rssTextItems, localizationUpdateInfo: $localizationUpdateInfo, scServerStatus: $scServerStatus, countdownFestivalListData: $countdownFestivalListData, isGameRunning: $isGameRunning)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$HomeUIModelStateImplCopyWith<$Res>
|
||||
implements $HomeUIModelStateCopyWith<$Res> {
|
||||
factory _$$HomeUIModelStateImplCopyWith(_$HomeUIModelStateImpl value,
|
||||
$Res Function(_$HomeUIModelStateImpl) then) =
|
||||
__$$HomeUIModelStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
abstract mixin class $HomeUIModelStateCopyWith<$Res> {
|
||||
factory $HomeUIModelStateCopyWith(
|
||||
HomeUIModelState value, $Res Function(HomeUIModelState) _then) =
|
||||
_$HomeUIModelStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call(
|
||||
{AppPlacardData? appPlacardData,
|
||||
@ -167,18 +112,18 @@ abstract class _$$HomeUIModelStateImplCopyWith<$Res>
|
||||
List<RssItem>? rssVideoItems,
|
||||
List<RssItem>? rssTextItems,
|
||||
MapEntry<String, bool>? localizationUpdateInfo,
|
||||
List<dynamic>? scServerStatus,
|
||||
List? scServerStatus,
|
||||
List<CountdownFestivalItemData>? countdownFestivalListData,
|
||||
Map<String, bool> isGameRunning});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$HomeUIModelStateImplCopyWithImpl<$Res>
|
||||
extends _$HomeUIModelStateCopyWithImpl<$Res, _$HomeUIModelStateImpl>
|
||||
implements _$$HomeUIModelStateImplCopyWith<$Res> {
|
||||
__$$HomeUIModelStateImplCopyWithImpl(_$HomeUIModelStateImpl _value,
|
||||
$Res Function(_$HomeUIModelStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
class _$HomeUIModelStateCopyWithImpl<$Res>
|
||||
implements $HomeUIModelStateCopyWith<$Res> {
|
||||
_$HomeUIModelStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final HomeUIModelState _self;
|
||||
final $Res Function(HomeUIModelState) _then;
|
||||
|
||||
/// Create a copy of HomeUIModelState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@ -199,57 +144,57 @@ class __$$HomeUIModelStateImplCopyWithImpl<$Res>
|
||||
Object? countdownFestivalListData = freezed,
|
||||
Object? isGameRunning = null,
|
||||
}) {
|
||||
return _then(_$HomeUIModelStateImpl(
|
||||
return _then(_self.copyWith(
|
||||
appPlacardData: freezed == appPlacardData
|
||||
? _value.appPlacardData
|
||||
? _self.appPlacardData
|
||||
: appPlacardData // ignore: cast_nullable_to_non_nullable
|
||||
as AppPlacardData?,
|
||||
isFixing: null == isFixing
|
||||
? _value.isFixing
|
||||
? _self.isFixing
|
||||
: isFixing // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isFixingString: null == isFixingString
|
||||
? _value.isFixingString
|
||||
? _self.isFixingString
|
||||
: isFixingString // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
scInstalledPath: freezed == scInstalledPath
|
||||
? _value.scInstalledPath
|
||||
? _self.scInstalledPath
|
||||
: scInstalledPath // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
scInstallPaths: null == scInstallPaths
|
||||
? _value._scInstallPaths
|
||||
? _self.scInstallPaths
|
||||
: scInstallPaths // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
webLocalizationVersionsData: freezed == webLocalizationVersionsData
|
||||
? _value.webLocalizationVersionsData
|
||||
? _self.webLocalizationVersionsData
|
||||
: webLocalizationVersionsData // ignore: cast_nullable_to_non_nullable
|
||||
as AppWebLocalizationVersionsData?,
|
||||
lastScreenInfo: null == lastScreenInfo
|
||||
? _value.lastScreenInfo
|
||||
? _self.lastScreenInfo
|
||||
: lastScreenInfo // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
rssVideoItems: freezed == rssVideoItems
|
||||
? _value._rssVideoItems
|
||||
? _self.rssVideoItems
|
||||
: rssVideoItems // ignore: cast_nullable_to_non_nullable
|
||||
as List<RssItem>?,
|
||||
rssTextItems: freezed == rssTextItems
|
||||
? _value._rssTextItems
|
||||
? _self.rssTextItems
|
||||
: rssTextItems // ignore: cast_nullable_to_non_nullable
|
||||
as List<RssItem>?,
|
||||
localizationUpdateInfo: freezed == localizationUpdateInfo
|
||||
? _value.localizationUpdateInfo
|
||||
? _self.localizationUpdateInfo
|
||||
: localizationUpdateInfo // ignore: cast_nullable_to_non_nullable
|
||||
as MapEntry<String, bool>?,
|
||||
scServerStatus: freezed == scServerStatus
|
||||
? _value._scServerStatus
|
||||
? _self.scServerStatus
|
||||
: scServerStatus // ignore: cast_nullable_to_non_nullable
|
||||
as List<dynamic>?,
|
||||
as List?,
|
||||
countdownFestivalListData: freezed == countdownFestivalListData
|
||||
? _value._countdownFestivalListData
|
||||
? _self.countdownFestivalListData
|
||||
: countdownFestivalListData // ignore: cast_nullable_to_non_nullable
|
||||
as List<CountdownFestivalItemData>?,
|
||||
isGameRunning: null == isGameRunning
|
||||
? _value._isGameRunning
|
||||
? _self.isGameRunning
|
||||
: isGameRunning // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, bool>,
|
||||
));
|
||||
@ -258,8 +203,8 @@ class __$$HomeUIModelStateImplCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$HomeUIModelStateImpl implements _HomeUIModelState {
|
||||
_$HomeUIModelStateImpl(
|
||||
class _HomeUIModelState implements HomeUIModelState {
|
||||
_HomeUIModelState(
|
||||
{this.appPlacardData,
|
||||
this.isFixing = false,
|
||||
this.isFixingString = "",
|
||||
@ -270,7 +215,7 @@ class _$HomeUIModelStateImpl implements _HomeUIModelState {
|
||||
final List<RssItem>? rssVideoItems,
|
||||
final List<RssItem>? rssTextItems,
|
||||
this.localizationUpdateInfo,
|
||||
final List<dynamic>? scServerStatus,
|
||||
final List? scServerStatus,
|
||||
final List<CountdownFestivalItemData>? countdownFestivalListData,
|
||||
final Map<String, bool> isGameRunning = const {}})
|
||||
: _scInstallPaths = scInstallPaths,
|
||||
@ -326,9 +271,9 @@ class _$HomeUIModelStateImpl implements _HomeUIModelState {
|
||||
|
||||
@override
|
||||
final MapEntry<String, bool>? localizationUpdateInfo;
|
||||
final List<dynamic>? _scServerStatus;
|
||||
final List? _scServerStatus;
|
||||
@override
|
||||
List<dynamic>? get scServerStatus {
|
||||
List? get scServerStatus {
|
||||
final value = _scServerStatus;
|
||||
if (value == null) return null;
|
||||
if (_scServerStatus is EqualUnmodifiableListView) return _scServerStatus;
|
||||
@ -356,16 +301,19 @@ class _$HomeUIModelStateImpl implements _HomeUIModelState {
|
||||
return EqualUnmodifiableMapView(_isGameRunning);
|
||||
}
|
||||
|
||||
/// Create a copy of HomeUIModelState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomeUIModelState(appPlacardData: $appPlacardData, isFixing: $isFixing, isFixingString: $isFixingString, scInstalledPath: $scInstalledPath, scInstallPaths: $scInstallPaths, webLocalizationVersionsData: $webLocalizationVersionsData, lastScreenInfo: $lastScreenInfo, rssVideoItems: $rssVideoItems, rssTextItems: $rssTextItems, localizationUpdateInfo: $localizationUpdateInfo, scServerStatus: $scServerStatus, countdownFestivalListData: $countdownFestivalListData, isGameRunning: $isGameRunning)';
|
||||
}
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$HomeUIModelStateCopyWith<_HomeUIModelState> get copyWith =>
|
||||
__$HomeUIModelStateCopyWithImpl<_HomeUIModelState>(this, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$HomeUIModelStateImpl &&
|
||||
other is _HomeUIModelState &&
|
||||
(identical(other.appPlacardData, appPlacardData) ||
|
||||
other.appPlacardData == appPlacardData) &&
|
||||
(identical(other.isFixing, isFixing) ||
|
||||
@ -413,63 +361,118 @@ class _$HomeUIModelStateImpl implements _HomeUIModelState {
|
||||
const DeepCollectionEquality().hash(_countdownFestivalListData),
|
||||
const DeepCollectionEquality().hash(_isGameRunning));
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomeUIModelState(appPlacardData: $appPlacardData, isFixing: $isFixing, isFixingString: $isFixingString, scInstalledPath: $scInstalledPath, scInstallPaths: $scInstallPaths, webLocalizationVersionsData: $webLocalizationVersionsData, lastScreenInfo: $lastScreenInfo, rssVideoItems: $rssVideoItems, rssTextItems: $rssTextItems, localizationUpdateInfo: $localizationUpdateInfo, scServerStatus: $scServerStatus, countdownFestivalListData: $countdownFestivalListData, isGameRunning: $isGameRunning)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$HomeUIModelStateCopyWith<$Res>
|
||||
implements $HomeUIModelStateCopyWith<$Res> {
|
||||
factory _$HomeUIModelStateCopyWith(
|
||||
_HomeUIModelState value, $Res Function(_HomeUIModelState) _then) =
|
||||
__$HomeUIModelStateCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{AppPlacardData? appPlacardData,
|
||||
bool isFixing,
|
||||
String isFixingString,
|
||||
String? scInstalledPath,
|
||||
List<String> scInstallPaths,
|
||||
AppWebLocalizationVersionsData? webLocalizationVersionsData,
|
||||
String lastScreenInfo,
|
||||
List<RssItem>? rssVideoItems,
|
||||
List<RssItem>? rssTextItems,
|
||||
MapEntry<String, bool>? localizationUpdateInfo,
|
||||
List? scServerStatus,
|
||||
List<CountdownFestivalItemData>? countdownFestivalListData,
|
||||
Map<String, bool> isGameRunning});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$HomeUIModelStateCopyWithImpl<$Res>
|
||||
implements _$HomeUIModelStateCopyWith<$Res> {
|
||||
__$HomeUIModelStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _HomeUIModelState _self;
|
||||
final $Res Function(_HomeUIModelState) _then;
|
||||
|
||||
/// Create a copy of HomeUIModelState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$HomeUIModelStateImplCopyWith<_$HomeUIModelStateImpl> get copyWith =>
|
||||
__$$HomeUIModelStateImplCopyWithImpl<_$HomeUIModelStateImpl>(
|
||||
this, _$identity);
|
||||
$Res call({
|
||||
Object? appPlacardData = freezed,
|
||||
Object? isFixing = null,
|
||||
Object? isFixingString = null,
|
||||
Object? scInstalledPath = freezed,
|
||||
Object? scInstallPaths = null,
|
||||
Object? webLocalizationVersionsData = freezed,
|
||||
Object? lastScreenInfo = null,
|
||||
Object? rssVideoItems = freezed,
|
||||
Object? rssTextItems = freezed,
|
||||
Object? localizationUpdateInfo = freezed,
|
||||
Object? scServerStatus = freezed,
|
||||
Object? countdownFestivalListData = freezed,
|
||||
Object? isGameRunning = null,
|
||||
}) {
|
||||
return _then(_HomeUIModelState(
|
||||
appPlacardData: freezed == appPlacardData
|
||||
? _self.appPlacardData
|
||||
: appPlacardData // ignore: cast_nullable_to_non_nullable
|
||||
as AppPlacardData?,
|
||||
isFixing: null == isFixing
|
||||
? _self.isFixing
|
||||
: isFixing // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isFixingString: null == isFixingString
|
||||
? _self.isFixingString
|
||||
: isFixingString // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
scInstalledPath: freezed == scInstalledPath
|
||||
? _self.scInstalledPath
|
||||
: scInstalledPath // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
scInstallPaths: null == scInstallPaths
|
||||
? _self._scInstallPaths
|
||||
: scInstallPaths // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
webLocalizationVersionsData: freezed == webLocalizationVersionsData
|
||||
? _self.webLocalizationVersionsData
|
||||
: webLocalizationVersionsData // ignore: cast_nullable_to_non_nullable
|
||||
as AppWebLocalizationVersionsData?,
|
||||
lastScreenInfo: null == lastScreenInfo
|
||||
? _self.lastScreenInfo
|
||||
: lastScreenInfo // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
rssVideoItems: freezed == rssVideoItems
|
||||
? _self._rssVideoItems
|
||||
: rssVideoItems // ignore: cast_nullable_to_non_nullable
|
||||
as List<RssItem>?,
|
||||
rssTextItems: freezed == rssTextItems
|
||||
? _self._rssTextItems
|
||||
: rssTextItems // ignore: cast_nullable_to_non_nullable
|
||||
as List<RssItem>?,
|
||||
localizationUpdateInfo: freezed == localizationUpdateInfo
|
||||
? _self.localizationUpdateInfo
|
||||
: localizationUpdateInfo // ignore: cast_nullable_to_non_nullable
|
||||
as MapEntry<String, bool>?,
|
||||
scServerStatus: freezed == scServerStatus
|
||||
? _self._scServerStatus
|
||||
: scServerStatus // ignore: cast_nullable_to_non_nullable
|
||||
as List?,
|
||||
countdownFestivalListData: freezed == countdownFestivalListData
|
||||
? _self._countdownFestivalListData
|
||||
: countdownFestivalListData // ignore: cast_nullable_to_non_nullable
|
||||
as List<CountdownFestivalItemData>?,
|
||||
isGameRunning: null == isGameRunning
|
||||
? _self._isGameRunning
|
||||
: isGameRunning // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, bool>,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _HomeUIModelState implements HomeUIModelState {
|
||||
factory _HomeUIModelState(
|
||||
{final AppPlacardData? appPlacardData,
|
||||
final bool isFixing,
|
||||
final String isFixingString,
|
||||
final String? scInstalledPath,
|
||||
final List<String> scInstallPaths,
|
||||
final AppWebLocalizationVersionsData? webLocalizationVersionsData,
|
||||
final String lastScreenInfo,
|
||||
final List<RssItem>? rssVideoItems,
|
||||
final List<RssItem>? rssTextItems,
|
||||
final MapEntry<String, bool>? localizationUpdateInfo,
|
||||
final List<dynamic>? scServerStatus,
|
||||
final List<CountdownFestivalItemData>? countdownFestivalListData,
|
||||
final Map<String, bool> isGameRunning}) = _$HomeUIModelStateImpl;
|
||||
|
||||
@override
|
||||
AppPlacardData? get appPlacardData;
|
||||
@override
|
||||
bool get isFixing;
|
||||
@override
|
||||
String get isFixingString;
|
||||
@override
|
||||
String? get scInstalledPath;
|
||||
@override
|
||||
List<String> get scInstallPaths;
|
||||
@override
|
||||
AppWebLocalizationVersionsData? get webLocalizationVersionsData;
|
||||
@override
|
||||
String get lastScreenInfo;
|
||||
@override
|
||||
List<RssItem>? get rssVideoItems;
|
||||
@override
|
||||
List<RssItem>? get rssTextItems;
|
||||
@override
|
||||
MapEntry<String, bool>? get localizationUpdateInfo;
|
||||
@override
|
||||
List<dynamic>? get scServerStatus;
|
||||
@override
|
||||
List<CountdownFestivalItemData>? get countdownFestivalListData;
|
||||
@override
|
||||
Map<String, bool> get isGameRunning;
|
||||
|
||||
/// Create a copy of HomeUIModelState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$HomeUIModelStateImplCopyWith<_$HomeUIModelStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
// dart format on
|
||||
|
@ -14,7 +14,7 @@ part 'input_method_dialog_ui_model.g.dart';
|
||||
part 'input_method_dialog_ui_model.freezed.dart';
|
||||
|
||||
@freezed
|
||||
class InputMethodDialogUIState with _$InputMethodDialogUIState {
|
||||
abstract class InputMethodDialogUIState with _$InputMethodDialogUIState {
|
||||
factory InputMethodDialogUIState(
|
||||
Map<String, String>? keyMaps,
|
||||
Map<String, String>? worldMaps, {
|
||||
|
@ -1,3 +1,4 @@
|
||||
// dart format width=80
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint
|
||||
@ -9,95 +10,60 @@ part of 'input_method_dialog_ui_model.dart';
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// dart format off
|
||||
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 _$InputMethodDialogUIState {
|
||||
Map<String, String>? get keyMaps => throw _privateConstructorUsedError;
|
||||
Map<String, String>? get worldMaps => throw _privateConstructorUsedError;
|
||||
bool get enableAutoCopy => throw _privateConstructorUsedError;
|
||||
bool get isEnableAutoTranslate => throw _privateConstructorUsedError;
|
||||
bool get isAutoTranslateWorking => throw _privateConstructorUsedError;
|
||||
Map<String, String>? get keyMaps;
|
||||
Map<String, String>? get worldMaps;
|
||||
bool get enableAutoCopy;
|
||||
bool get isEnableAutoTranslate;
|
||||
bool get isAutoTranslateWorking;
|
||||
|
||||
/// Create a copy of InputMethodDialogUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$InputMethodDialogUIStateCopyWith<InputMethodDialogUIState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $InputMethodDialogUIStateCopyWith<$Res> {
|
||||
factory $InputMethodDialogUIStateCopyWith(InputMethodDialogUIState value,
|
||||
$Res Function(InputMethodDialogUIState) then) =
|
||||
_$InputMethodDialogUIStateCopyWithImpl<$Res, InputMethodDialogUIState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{Map<String, String>? keyMaps,
|
||||
Map<String, String>? worldMaps,
|
||||
bool enableAutoCopy,
|
||||
bool isEnableAutoTranslate,
|
||||
bool isAutoTranslateWorking});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$InputMethodDialogUIStateCopyWithImpl<$Res,
|
||||
$Val extends InputMethodDialogUIState>
|
||||
implements $InputMethodDialogUIStateCopyWith<$Res> {
|
||||
_$InputMethodDialogUIStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of InputMethodDialogUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
$InputMethodDialogUIStateCopyWith<InputMethodDialogUIState> get copyWith =>
|
||||
_$InputMethodDialogUIStateCopyWithImpl<InputMethodDialogUIState>(
|
||||
this as InputMethodDialogUIState, _$identity);
|
||||
|
||||
@override
|
||||
$Res call({
|
||||
Object? keyMaps = freezed,
|
||||
Object? worldMaps = freezed,
|
||||
Object? enableAutoCopy = null,
|
||||
Object? isEnableAutoTranslate = null,
|
||||
Object? isAutoTranslateWorking = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
keyMaps: freezed == keyMaps
|
||||
? _value.keyMaps
|
||||
: keyMaps // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, String>?,
|
||||
worldMaps: freezed == worldMaps
|
||||
? _value.worldMaps
|
||||
: worldMaps // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, String>?,
|
||||
enableAutoCopy: null == enableAutoCopy
|
||||
? _value.enableAutoCopy
|
||||
: enableAutoCopy // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isEnableAutoTranslate: null == isEnableAutoTranslate
|
||||
? _value.isEnableAutoTranslate
|
||||
: isEnableAutoTranslate // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isAutoTranslateWorking: null == isAutoTranslateWorking
|
||||
? _value.isAutoTranslateWorking
|
||||
: isAutoTranslateWorking // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
) as $Val);
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is InputMethodDialogUIState &&
|
||||
const DeepCollectionEquality().equals(other.keyMaps, keyMaps) &&
|
||||
const DeepCollectionEquality().equals(other.worldMaps, worldMaps) &&
|
||||
(identical(other.enableAutoCopy, enableAutoCopy) ||
|
||||
other.enableAutoCopy == enableAutoCopy) &&
|
||||
(identical(other.isEnableAutoTranslate, isEnableAutoTranslate) ||
|
||||
other.isEnableAutoTranslate == isEnableAutoTranslate) &&
|
||||
(identical(other.isAutoTranslateWorking, isAutoTranslateWorking) ||
|
||||
other.isAutoTranslateWorking == isAutoTranslateWorking));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
const DeepCollectionEquality().hash(keyMaps),
|
||||
const DeepCollectionEquality().hash(worldMaps),
|
||||
enableAutoCopy,
|
||||
isEnableAutoTranslate,
|
||||
isAutoTranslateWorking);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'InputMethodDialogUIState(keyMaps: $keyMaps, worldMaps: $worldMaps, enableAutoCopy: $enableAutoCopy, isEnableAutoTranslate: $isEnableAutoTranslate, isAutoTranslateWorking: $isAutoTranslateWorking)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$InputMethodDialogUIStateImplCopyWith<$Res>
|
||||
implements $InputMethodDialogUIStateCopyWith<$Res> {
|
||||
factory _$$InputMethodDialogUIStateImplCopyWith(
|
||||
_$InputMethodDialogUIStateImpl value,
|
||||
$Res Function(_$InputMethodDialogUIStateImpl) then) =
|
||||
__$$InputMethodDialogUIStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
abstract mixin class $InputMethodDialogUIStateCopyWith<$Res> {
|
||||
factory $InputMethodDialogUIStateCopyWith(InputMethodDialogUIState value,
|
||||
$Res Function(InputMethodDialogUIState) _then) =
|
||||
_$InputMethodDialogUIStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call(
|
||||
{Map<String, String>? keyMaps,
|
||||
@ -108,14 +74,12 @@ abstract class _$$InputMethodDialogUIStateImplCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$InputMethodDialogUIStateImplCopyWithImpl<$Res>
|
||||
extends _$InputMethodDialogUIStateCopyWithImpl<$Res,
|
||||
_$InputMethodDialogUIStateImpl>
|
||||
implements _$$InputMethodDialogUIStateImplCopyWith<$Res> {
|
||||
__$$InputMethodDialogUIStateImplCopyWithImpl(
|
||||
_$InputMethodDialogUIStateImpl _value,
|
||||
$Res Function(_$InputMethodDialogUIStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
class _$InputMethodDialogUIStateCopyWithImpl<$Res>
|
||||
implements $InputMethodDialogUIStateCopyWith<$Res> {
|
||||
_$InputMethodDialogUIStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final InputMethodDialogUIState _self;
|
||||
final $Res Function(InputMethodDialogUIState) _then;
|
||||
|
||||
/// Create a copy of InputMethodDialogUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@ -128,25 +92,25 @@ class __$$InputMethodDialogUIStateImplCopyWithImpl<$Res>
|
||||
Object? isEnableAutoTranslate = null,
|
||||
Object? isAutoTranslateWorking = null,
|
||||
}) {
|
||||
return _then(_$InputMethodDialogUIStateImpl(
|
||||
freezed == keyMaps
|
||||
? _value._keyMaps
|
||||
return _then(_self.copyWith(
|
||||
keyMaps: freezed == keyMaps
|
||||
? _self.keyMaps
|
||||
: keyMaps // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, String>?,
|
||||
freezed == worldMaps
|
||||
? _value._worldMaps
|
||||
worldMaps: freezed == worldMaps
|
||||
? _self.worldMaps
|
||||
: worldMaps // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, String>?,
|
||||
enableAutoCopy: null == enableAutoCopy
|
||||
? _value.enableAutoCopy
|
||||
? _self.enableAutoCopy
|
||||
: enableAutoCopy // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isEnableAutoTranslate: null == isEnableAutoTranslate
|
||||
? _value.isEnableAutoTranslate
|
||||
? _self.isEnableAutoTranslate
|
||||
: isEnableAutoTranslate // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isAutoTranslateWorking: null == isAutoTranslateWorking
|
||||
? _value.isAutoTranslateWorking
|
||||
? _self.isAutoTranslateWorking
|
||||
: isAutoTranslateWorking // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
));
|
||||
@ -155,8 +119,8 @@ class __$$InputMethodDialogUIStateImplCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$InputMethodDialogUIStateImpl implements _InputMethodDialogUIState {
|
||||
_$InputMethodDialogUIStateImpl(
|
||||
class _InputMethodDialogUIState implements InputMethodDialogUIState {
|
||||
_InputMethodDialogUIState(
|
||||
final Map<String, String>? keyMaps, final Map<String, String>? worldMaps,
|
||||
{this.enableAutoCopy = false,
|
||||
this.isEnableAutoTranslate = false,
|
||||
@ -194,16 +158,20 @@ class _$InputMethodDialogUIStateImpl implements _InputMethodDialogUIState {
|
||||
@JsonKey()
|
||||
final bool isAutoTranslateWorking;
|
||||
|
||||
/// Create a copy of InputMethodDialogUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
String toString() {
|
||||
return 'InputMethodDialogUIState(keyMaps: $keyMaps, worldMaps: $worldMaps, enableAutoCopy: $enableAutoCopy, isEnableAutoTranslate: $isEnableAutoTranslate, isAutoTranslateWorking: $isAutoTranslateWorking)';
|
||||
}
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$InputMethodDialogUIStateCopyWith<_InputMethodDialogUIState> get copyWith =>
|
||||
__$InputMethodDialogUIStateCopyWithImpl<_InputMethodDialogUIState>(
|
||||
this, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$InputMethodDialogUIStateImpl &&
|
||||
other is _InputMethodDialogUIState &&
|
||||
const DeepCollectionEquality().equals(other._keyMaps, _keyMaps) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other._worldMaps, _worldMaps) &&
|
||||
@ -224,38 +192,70 @@ class _$InputMethodDialogUIStateImpl implements _InputMethodDialogUIState {
|
||||
isEnableAutoTranslate,
|
||||
isAutoTranslateWorking);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'InputMethodDialogUIState(keyMaps: $keyMaps, worldMaps: $worldMaps, enableAutoCopy: $enableAutoCopy, isEnableAutoTranslate: $isEnableAutoTranslate, isAutoTranslateWorking: $isAutoTranslateWorking)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$InputMethodDialogUIStateCopyWith<$Res>
|
||||
implements $InputMethodDialogUIStateCopyWith<$Res> {
|
||||
factory _$InputMethodDialogUIStateCopyWith(_InputMethodDialogUIState value,
|
||||
$Res Function(_InputMethodDialogUIState) _then) =
|
||||
__$InputMethodDialogUIStateCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{Map<String, String>? keyMaps,
|
||||
Map<String, String>? worldMaps,
|
||||
bool enableAutoCopy,
|
||||
bool isEnableAutoTranslate,
|
||||
bool isAutoTranslateWorking});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$InputMethodDialogUIStateCopyWithImpl<$Res>
|
||||
implements _$InputMethodDialogUIStateCopyWith<$Res> {
|
||||
__$InputMethodDialogUIStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _InputMethodDialogUIState _self;
|
||||
final $Res Function(_InputMethodDialogUIState) _then;
|
||||
|
||||
/// Create a copy of InputMethodDialogUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$InputMethodDialogUIStateImplCopyWith<_$InputMethodDialogUIStateImpl>
|
||||
get copyWith => __$$InputMethodDialogUIStateImplCopyWithImpl<
|
||||
_$InputMethodDialogUIStateImpl>(this, _$identity);
|
||||
$Res call({
|
||||
Object? keyMaps = freezed,
|
||||
Object? worldMaps = freezed,
|
||||
Object? enableAutoCopy = null,
|
||||
Object? isEnableAutoTranslate = null,
|
||||
Object? isAutoTranslateWorking = null,
|
||||
}) {
|
||||
return _then(_InputMethodDialogUIState(
|
||||
freezed == keyMaps
|
||||
? _self._keyMaps
|
||||
: keyMaps // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, String>?,
|
||||
freezed == worldMaps
|
||||
? _self._worldMaps
|
||||
: worldMaps // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, String>?,
|
||||
enableAutoCopy: null == enableAutoCopy
|
||||
? _self.enableAutoCopy
|
||||
: enableAutoCopy // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isEnableAutoTranslate: null == isEnableAutoTranslate
|
||||
? _self.isEnableAutoTranslate
|
||||
: isEnableAutoTranslate // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isAutoTranslateWorking: null == isAutoTranslateWorking
|
||||
? _self.isAutoTranslateWorking
|
||||
: isAutoTranslateWorking // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _InputMethodDialogUIState implements InputMethodDialogUIState {
|
||||
factory _InputMethodDialogUIState(
|
||||
final Map<String, String>? keyMaps, final Map<String, String>? worldMaps,
|
||||
{final bool enableAutoCopy,
|
||||
final bool isEnableAutoTranslate,
|
||||
final bool isAutoTranslateWorking}) = _$InputMethodDialogUIStateImpl;
|
||||
|
||||
@override
|
||||
Map<String, String>? get keyMaps;
|
||||
@override
|
||||
Map<String, String>? get worldMaps;
|
||||
@override
|
||||
bool get enableAutoCopy;
|
||||
@override
|
||||
bool get isEnableAutoTranslate;
|
||||
@override
|
||||
bool get isAutoTranslateWorking;
|
||||
|
||||
/// Create a copy of InputMethodDialogUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$InputMethodDialogUIStateImplCopyWith<_$InputMethodDialogUIStateImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
// dart format on
|
||||
|
@ -20,7 +20,7 @@ part 'server.g.dart';
|
||||
part 'server.freezed.dart';
|
||||
|
||||
@freezed
|
||||
class InputMethodServerState with _$InputMethodServerState {
|
||||
abstract class InputMethodServerState with _$InputMethodServerState {
|
||||
const factory InputMethodServerState({
|
||||
@Default(false) bool isServerStartup,
|
||||
String? serverAddressText,
|
||||
|
@ -1,3 +1,4 @@
|
||||
// dart format width=80
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint
|
||||
@ -9,129 +10,27 @@ part of 'server.dart';
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// dart format off
|
||||
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 _$InputMethodServerState {
|
||||
bool get isServerStartup => throw _privateConstructorUsedError;
|
||||
String? get serverAddressText => throw _privateConstructorUsedError;
|
||||
bool get isServerStartup;
|
||||
String? get serverAddressText;
|
||||
|
||||
/// Create a copy of InputMethodServerState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
$InputMethodServerStateCopyWith<InputMethodServerState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $InputMethodServerStateCopyWith<$Res> {
|
||||
factory $InputMethodServerStateCopyWith(InputMethodServerState value,
|
||||
$Res Function(InputMethodServerState) then) =
|
||||
_$InputMethodServerStateCopyWithImpl<$Res, InputMethodServerState>;
|
||||
@useResult
|
||||
$Res call({bool isServerStartup, String? serverAddressText});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$InputMethodServerStateCopyWithImpl<$Res,
|
||||
$Val extends InputMethodServerState>
|
||||
implements $InputMethodServerStateCopyWith<$Res> {
|
||||
_$InputMethodServerStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of InputMethodServerState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? isServerStartup = null,
|
||||
Object? serverAddressText = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
isServerStartup: null == isServerStartup
|
||||
? _value.isServerStartup
|
||||
: isServerStartup // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
serverAddressText: freezed == serverAddressText
|
||||
? _value.serverAddressText
|
||||
: serverAddressText // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$InputMethodServerStateImplCopyWith<$Res>
|
||||
implements $InputMethodServerStateCopyWith<$Res> {
|
||||
factory _$$InputMethodServerStateImplCopyWith(
|
||||
_$InputMethodServerStateImpl value,
|
||||
$Res Function(_$InputMethodServerStateImpl) then) =
|
||||
__$$InputMethodServerStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({bool isServerStartup, String? serverAddressText});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$InputMethodServerStateImplCopyWithImpl<$Res>
|
||||
extends _$InputMethodServerStateCopyWithImpl<$Res,
|
||||
_$InputMethodServerStateImpl>
|
||||
implements _$$InputMethodServerStateImplCopyWith<$Res> {
|
||||
__$$InputMethodServerStateImplCopyWithImpl(
|
||||
_$InputMethodServerStateImpl _value,
|
||||
$Res Function(_$InputMethodServerStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of InputMethodServerState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? isServerStartup = null,
|
||||
Object? serverAddressText = freezed,
|
||||
}) {
|
||||
return _then(_$InputMethodServerStateImpl(
|
||||
isServerStartup: null == isServerStartup
|
||||
? _value.isServerStartup
|
||||
: isServerStartup // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
serverAddressText: freezed == serverAddressText
|
||||
? _value.serverAddressText
|
||||
: serverAddressText // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$InputMethodServerStateImpl implements _InputMethodServerState {
|
||||
const _$InputMethodServerStateImpl(
|
||||
{this.isServerStartup = false, this.serverAddressText});
|
||||
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool isServerStartup;
|
||||
@override
|
||||
final String? serverAddressText;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'InputMethodServerState(isServerStartup: $isServerStartup, serverAddressText: $serverAddressText)';
|
||||
}
|
||||
_$InputMethodServerStateCopyWithImpl<InputMethodServerState>(
|
||||
this as InputMethodServerState, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$InputMethodServerStateImpl &&
|
||||
other is InputMethodServerState &&
|
||||
(identical(other.isServerStartup, isServerStartup) ||
|
||||
other.isServerStartup == isServerStartup) &&
|
||||
(identical(other.serverAddressText, serverAddressText) ||
|
||||
@ -142,30 +41,130 @@ class _$InputMethodServerStateImpl implements _InputMethodServerState {
|
||||
int get hashCode =>
|
||||
Object.hash(runtimeType, isServerStartup, serverAddressText);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'InputMethodServerState(isServerStartup: $isServerStartup, serverAddressText: $serverAddressText)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class $InputMethodServerStateCopyWith<$Res> {
|
||||
factory $InputMethodServerStateCopyWith(InputMethodServerState value,
|
||||
$Res Function(InputMethodServerState) _then) =
|
||||
_$InputMethodServerStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({bool isServerStartup, String? serverAddressText});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$InputMethodServerStateCopyWithImpl<$Res>
|
||||
implements $InputMethodServerStateCopyWith<$Res> {
|
||||
_$InputMethodServerStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final InputMethodServerState _self;
|
||||
final $Res Function(InputMethodServerState) _then;
|
||||
|
||||
/// Create a copy of InputMethodServerState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? isServerStartup = null,
|
||||
Object? serverAddressText = freezed,
|
||||
}) {
|
||||
return _then(_self.copyWith(
|
||||
isServerStartup: null == isServerStartup
|
||||
? _self.isServerStartup
|
||||
: isServerStartup // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
serverAddressText: freezed == serverAddressText
|
||||
? _self.serverAddressText
|
||||
: serverAddressText // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _InputMethodServerState implements InputMethodServerState {
|
||||
const _InputMethodServerState(
|
||||
{this.isServerStartup = false, this.serverAddressText});
|
||||
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool isServerStartup;
|
||||
@override
|
||||
final String? serverAddressText;
|
||||
|
||||
/// Create a copy of InputMethodServerState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$InputMethodServerStateCopyWith<_InputMethodServerState> get copyWith =>
|
||||
__$InputMethodServerStateCopyWithImpl<_InputMethodServerState>(
|
||||
this, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _InputMethodServerState &&
|
||||
(identical(other.isServerStartup, isServerStartup) ||
|
||||
other.isServerStartup == isServerStartup) &&
|
||||
(identical(other.serverAddressText, serverAddressText) ||
|
||||
other.serverAddressText == serverAddressText));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
Object.hash(runtimeType, isServerStartup, serverAddressText);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'InputMethodServerState(isServerStartup: $isServerStartup, serverAddressText: $serverAddressText)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$InputMethodServerStateCopyWith<$Res>
|
||||
implements $InputMethodServerStateCopyWith<$Res> {
|
||||
factory _$InputMethodServerStateCopyWith(_InputMethodServerState value,
|
||||
$Res Function(_InputMethodServerState) _then) =
|
||||
__$InputMethodServerStateCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({bool isServerStartup, String? serverAddressText});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$InputMethodServerStateCopyWithImpl<$Res>
|
||||
implements _$InputMethodServerStateCopyWith<$Res> {
|
||||
__$InputMethodServerStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _InputMethodServerState _self;
|
||||
final $Res Function(_InputMethodServerState) _then;
|
||||
|
||||
/// Create a copy of InputMethodServerState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$InputMethodServerStateImplCopyWith<_$InputMethodServerStateImpl>
|
||||
get copyWith => __$$InputMethodServerStateImplCopyWithImpl<
|
||||
_$InputMethodServerStateImpl>(this, _$identity);
|
||||
$Res call({
|
||||
Object? isServerStartup = null,
|
||||
Object? serverAddressText = freezed,
|
||||
}) {
|
||||
return _then(_InputMethodServerState(
|
||||
isServerStartup: null == isServerStartup
|
||||
? _self.isServerStartup
|
||||
: isServerStartup // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
serverAddressText: freezed == serverAddressText
|
||||
? _self.serverAddressText
|
||||
: serverAddressText // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _InputMethodServerState implements InputMethodServerState {
|
||||
const factory _InputMethodServerState(
|
||||
{final bool isServerStartup,
|
||||
final String? serverAddressText}) = _$InputMethodServerStateImpl;
|
||||
|
||||
@override
|
||||
bool get isServerStartup;
|
||||
@override
|
||||
String? get serverAddressText;
|
||||
|
||||
/// Create a copy of InputMethodServerState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$InputMethodServerStateImplCopyWith<_$InputMethodServerStateImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
// dart format on
|
||||
|
@ -27,7 +27,7 @@ part 'advanced_localization_ui_model.g.dart';
|
||||
part 'advanced_localization_ui_model.freezed.dart';
|
||||
|
||||
@freezed
|
||||
class AdvancedLocalizationUIState with _$AdvancedLocalizationUIState {
|
||||
abstract class AdvancedLocalizationUIState with _$AdvancedLocalizationUIState {
|
||||
factory AdvancedLocalizationUIState({
|
||||
@Default("") String workingText,
|
||||
Map<String, AppAdvancedLocalizationClassKeysData>? classMap,
|
||||
|
@ -1,3 +1,4 @@
|
||||
// dart format width=80
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint
|
||||
@ -9,127 +10,79 @@ part of 'advanced_localization_ui_model.dart';
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// dart format off
|
||||
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 _$AdvancedLocalizationUIState {
|
||||
String get workingText => throw _privateConstructorUsedError;
|
||||
Map<String, AppAdvancedLocalizationClassKeysData>? get classMap =>
|
||||
throw _privateConstructorUsedError;
|
||||
String? get p4kGlobalIni => throw _privateConstructorUsedError;
|
||||
String? get serverGlobalIni => throw _privateConstructorUsedError;
|
||||
String? get customizeGlobalIni => throw _privateConstructorUsedError;
|
||||
ScLocalizationData? get apiLocalizationData =>
|
||||
throw _privateConstructorUsedError;
|
||||
int get p4kGlobalIniLines => throw _privateConstructorUsedError;
|
||||
int get serverGlobalIniLines => throw _privateConstructorUsedError;
|
||||
String get errorMessage => throw _privateConstructorUsedError;
|
||||
String get workingText;
|
||||
Map<String, AppAdvancedLocalizationClassKeysData>? get classMap;
|
||||
String? get p4kGlobalIni;
|
||||
String? get serverGlobalIni;
|
||||
String? get customizeGlobalIni;
|
||||
ScLocalizationData? get apiLocalizationData;
|
||||
int get p4kGlobalIniLines;
|
||||
int get serverGlobalIniLines;
|
||||
String get errorMessage;
|
||||
|
||||
/// Create a copy of AdvancedLocalizationUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$AdvancedLocalizationUIStateCopyWith<AdvancedLocalizationUIState>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $AdvancedLocalizationUIStateCopyWith<$Res> {
|
||||
factory $AdvancedLocalizationUIStateCopyWith(
|
||||
AdvancedLocalizationUIState value,
|
||||
$Res Function(AdvancedLocalizationUIState) then) =
|
||||
_$AdvancedLocalizationUIStateCopyWithImpl<$Res,
|
||||
AdvancedLocalizationUIState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{String workingText,
|
||||
Map<String, AppAdvancedLocalizationClassKeysData>? classMap,
|
||||
String? p4kGlobalIni,
|
||||
String? serverGlobalIni,
|
||||
String? customizeGlobalIni,
|
||||
ScLocalizationData? apiLocalizationData,
|
||||
int p4kGlobalIniLines,
|
||||
int serverGlobalIniLines,
|
||||
String errorMessage});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$AdvancedLocalizationUIStateCopyWithImpl<$Res,
|
||||
$Val extends AdvancedLocalizationUIState>
|
||||
implements $AdvancedLocalizationUIStateCopyWith<$Res> {
|
||||
_$AdvancedLocalizationUIStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of AdvancedLocalizationUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
$AdvancedLocalizationUIStateCopyWith<AdvancedLocalizationUIState>
|
||||
get copyWith => _$AdvancedLocalizationUIStateCopyWithImpl<
|
||||
AdvancedLocalizationUIState>(
|
||||
this as AdvancedLocalizationUIState, _$identity);
|
||||
|
||||
@override
|
||||
$Res call({
|
||||
Object? workingText = null,
|
||||
Object? classMap = freezed,
|
||||
Object? p4kGlobalIni = freezed,
|
||||
Object? serverGlobalIni = freezed,
|
||||
Object? customizeGlobalIni = freezed,
|
||||
Object? apiLocalizationData = freezed,
|
||||
Object? p4kGlobalIniLines = null,
|
||||
Object? serverGlobalIniLines = null,
|
||||
Object? errorMessage = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
workingText: null == workingText
|
||||
? _value.workingText
|
||||
: workingText // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
classMap: freezed == classMap
|
||||
? _value.classMap
|
||||
: classMap // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, AppAdvancedLocalizationClassKeysData>?,
|
||||
p4kGlobalIni: freezed == p4kGlobalIni
|
||||
? _value.p4kGlobalIni
|
||||
: p4kGlobalIni // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
serverGlobalIni: freezed == serverGlobalIni
|
||||
? _value.serverGlobalIni
|
||||
: serverGlobalIni // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
customizeGlobalIni: freezed == customizeGlobalIni
|
||||
? _value.customizeGlobalIni
|
||||
: customizeGlobalIni // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
apiLocalizationData: freezed == apiLocalizationData
|
||||
? _value.apiLocalizationData
|
||||
: apiLocalizationData // ignore: cast_nullable_to_non_nullable
|
||||
as ScLocalizationData?,
|
||||
p4kGlobalIniLines: null == p4kGlobalIniLines
|
||||
? _value.p4kGlobalIniLines
|
||||
: p4kGlobalIniLines // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
serverGlobalIniLines: null == serverGlobalIniLines
|
||||
? _value.serverGlobalIniLines
|
||||
: serverGlobalIniLines // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
errorMessage: null == errorMessage
|
||||
? _value.errorMessage
|
||||
: errorMessage // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
) as $Val);
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is AdvancedLocalizationUIState &&
|
||||
(identical(other.workingText, workingText) ||
|
||||
other.workingText == workingText) &&
|
||||
const DeepCollectionEquality().equals(other.classMap, classMap) &&
|
||||
(identical(other.p4kGlobalIni, p4kGlobalIni) ||
|
||||
other.p4kGlobalIni == p4kGlobalIni) &&
|
||||
(identical(other.serverGlobalIni, serverGlobalIni) ||
|
||||
other.serverGlobalIni == serverGlobalIni) &&
|
||||
(identical(other.customizeGlobalIni, customizeGlobalIni) ||
|
||||
other.customizeGlobalIni == customizeGlobalIni) &&
|
||||
(identical(other.apiLocalizationData, apiLocalizationData) ||
|
||||
other.apiLocalizationData == apiLocalizationData) &&
|
||||
(identical(other.p4kGlobalIniLines, p4kGlobalIniLines) ||
|
||||
other.p4kGlobalIniLines == p4kGlobalIniLines) &&
|
||||
(identical(other.serverGlobalIniLines, serverGlobalIniLines) ||
|
||||
other.serverGlobalIniLines == serverGlobalIniLines) &&
|
||||
(identical(other.errorMessage, errorMessage) ||
|
||||
other.errorMessage == errorMessage));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
workingText,
|
||||
const DeepCollectionEquality().hash(classMap),
|
||||
p4kGlobalIni,
|
||||
serverGlobalIni,
|
||||
customizeGlobalIni,
|
||||
apiLocalizationData,
|
||||
p4kGlobalIniLines,
|
||||
serverGlobalIniLines,
|
||||
errorMessage);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'AdvancedLocalizationUIState(workingText: $workingText, classMap: $classMap, p4kGlobalIni: $p4kGlobalIni, serverGlobalIni: $serverGlobalIni, customizeGlobalIni: $customizeGlobalIni, apiLocalizationData: $apiLocalizationData, p4kGlobalIniLines: $p4kGlobalIniLines, serverGlobalIniLines: $serverGlobalIniLines, errorMessage: $errorMessage)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$AdvancedLocalizationUIStateImplCopyWith<$Res>
|
||||
implements $AdvancedLocalizationUIStateCopyWith<$Res> {
|
||||
factory _$$AdvancedLocalizationUIStateImplCopyWith(
|
||||
_$AdvancedLocalizationUIStateImpl value,
|
||||
$Res Function(_$AdvancedLocalizationUIStateImpl) then) =
|
||||
__$$AdvancedLocalizationUIStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
abstract mixin class $AdvancedLocalizationUIStateCopyWith<$Res> {
|
||||
factory $AdvancedLocalizationUIStateCopyWith(
|
||||
AdvancedLocalizationUIState value,
|
||||
$Res Function(AdvancedLocalizationUIState) _then) =
|
||||
_$AdvancedLocalizationUIStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call(
|
||||
{String workingText,
|
||||
@ -144,14 +97,12 @@ abstract class _$$AdvancedLocalizationUIStateImplCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$AdvancedLocalizationUIStateImplCopyWithImpl<$Res>
|
||||
extends _$AdvancedLocalizationUIStateCopyWithImpl<$Res,
|
||||
_$AdvancedLocalizationUIStateImpl>
|
||||
implements _$$AdvancedLocalizationUIStateImplCopyWith<$Res> {
|
||||
__$$AdvancedLocalizationUIStateImplCopyWithImpl(
|
||||
_$AdvancedLocalizationUIStateImpl _value,
|
||||
$Res Function(_$AdvancedLocalizationUIStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
class _$AdvancedLocalizationUIStateCopyWithImpl<$Res>
|
||||
implements $AdvancedLocalizationUIStateCopyWith<$Res> {
|
||||
_$AdvancedLocalizationUIStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final AdvancedLocalizationUIState _self;
|
||||
final $Res Function(AdvancedLocalizationUIState) _then;
|
||||
|
||||
/// Create a copy of AdvancedLocalizationUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@ -168,41 +119,41 @@ class __$$AdvancedLocalizationUIStateImplCopyWithImpl<$Res>
|
||||
Object? serverGlobalIniLines = null,
|
||||
Object? errorMessage = null,
|
||||
}) {
|
||||
return _then(_$AdvancedLocalizationUIStateImpl(
|
||||
return _then(_self.copyWith(
|
||||
workingText: null == workingText
|
||||
? _value.workingText
|
||||
? _self.workingText
|
||||
: workingText // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
classMap: freezed == classMap
|
||||
? _value._classMap
|
||||
? _self.classMap
|
||||
: classMap // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, AppAdvancedLocalizationClassKeysData>?,
|
||||
p4kGlobalIni: freezed == p4kGlobalIni
|
||||
? _value.p4kGlobalIni
|
||||
? _self.p4kGlobalIni
|
||||
: p4kGlobalIni // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
serverGlobalIni: freezed == serverGlobalIni
|
||||
? _value.serverGlobalIni
|
||||
? _self.serverGlobalIni
|
||||
: serverGlobalIni // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
customizeGlobalIni: freezed == customizeGlobalIni
|
||||
? _value.customizeGlobalIni
|
||||
? _self.customizeGlobalIni
|
||||
: customizeGlobalIni // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
apiLocalizationData: freezed == apiLocalizationData
|
||||
? _value.apiLocalizationData
|
||||
? _self.apiLocalizationData
|
||||
: apiLocalizationData // ignore: cast_nullable_to_non_nullable
|
||||
as ScLocalizationData?,
|
||||
p4kGlobalIniLines: null == p4kGlobalIniLines
|
||||
? _value.p4kGlobalIniLines
|
||||
? _self.p4kGlobalIniLines
|
||||
: p4kGlobalIniLines // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
serverGlobalIniLines: null == serverGlobalIniLines
|
||||
? _value.serverGlobalIniLines
|
||||
? _self.serverGlobalIniLines
|
||||
: serverGlobalIniLines // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
errorMessage: null == errorMessage
|
||||
? _value.errorMessage
|
||||
? _self.errorMessage
|
||||
: errorMessage // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
));
|
||||
@ -211,9 +162,8 @@ class __$$AdvancedLocalizationUIStateImplCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$AdvancedLocalizationUIStateImpl
|
||||
implements _AdvancedLocalizationUIState {
|
||||
_$AdvancedLocalizationUIStateImpl(
|
||||
class _AdvancedLocalizationUIState implements AdvancedLocalizationUIState {
|
||||
_AdvancedLocalizationUIState(
|
||||
{this.workingText = "",
|
||||
final Map<String, AppAdvancedLocalizationClassKeysData>? classMap,
|
||||
this.p4kGlobalIni,
|
||||
@ -256,16 +206,20 @@ class _$AdvancedLocalizationUIStateImpl
|
||||
@JsonKey()
|
||||
final String errorMessage;
|
||||
|
||||
/// Create a copy of AdvancedLocalizationUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
String toString() {
|
||||
return 'AdvancedLocalizationUIState(workingText: $workingText, classMap: $classMap, p4kGlobalIni: $p4kGlobalIni, serverGlobalIni: $serverGlobalIni, customizeGlobalIni: $customizeGlobalIni, apiLocalizationData: $apiLocalizationData, p4kGlobalIniLines: $p4kGlobalIniLines, serverGlobalIniLines: $serverGlobalIniLines, errorMessage: $errorMessage)';
|
||||
}
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$AdvancedLocalizationUIStateCopyWith<_AdvancedLocalizationUIState>
|
||||
get copyWith => __$AdvancedLocalizationUIStateCopyWithImpl<
|
||||
_AdvancedLocalizationUIState>(this, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$AdvancedLocalizationUIStateImpl &&
|
||||
other is _AdvancedLocalizationUIState &&
|
||||
(identical(other.workingText, workingText) ||
|
||||
other.workingText == workingText) &&
|
||||
const DeepCollectionEquality().equals(other._classMap, _classMap) &&
|
||||
@ -298,52 +252,95 @@ class _$AdvancedLocalizationUIStateImpl
|
||||
serverGlobalIniLines,
|
||||
errorMessage);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'AdvancedLocalizationUIState(workingText: $workingText, classMap: $classMap, p4kGlobalIni: $p4kGlobalIni, serverGlobalIni: $serverGlobalIni, customizeGlobalIni: $customizeGlobalIni, apiLocalizationData: $apiLocalizationData, p4kGlobalIniLines: $p4kGlobalIniLines, serverGlobalIniLines: $serverGlobalIniLines, errorMessage: $errorMessage)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$AdvancedLocalizationUIStateCopyWith<$Res>
|
||||
implements $AdvancedLocalizationUIStateCopyWith<$Res> {
|
||||
factory _$AdvancedLocalizationUIStateCopyWith(
|
||||
_AdvancedLocalizationUIState value,
|
||||
$Res Function(_AdvancedLocalizationUIState) _then) =
|
||||
__$AdvancedLocalizationUIStateCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{String workingText,
|
||||
Map<String, AppAdvancedLocalizationClassKeysData>? classMap,
|
||||
String? p4kGlobalIni,
|
||||
String? serverGlobalIni,
|
||||
String? customizeGlobalIni,
|
||||
ScLocalizationData? apiLocalizationData,
|
||||
int p4kGlobalIniLines,
|
||||
int serverGlobalIniLines,
|
||||
String errorMessage});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$AdvancedLocalizationUIStateCopyWithImpl<$Res>
|
||||
implements _$AdvancedLocalizationUIStateCopyWith<$Res> {
|
||||
__$AdvancedLocalizationUIStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _AdvancedLocalizationUIState _self;
|
||||
final $Res Function(_AdvancedLocalizationUIState) _then;
|
||||
|
||||
/// Create a copy of AdvancedLocalizationUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$AdvancedLocalizationUIStateImplCopyWith<_$AdvancedLocalizationUIStateImpl>
|
||||
get copyWith => __$$AdvancedLocalizationUIStateImplCopyWithImpl<
|
||||
_$AdvancedLocalizationUIStateImpl>(this, _$identity);
|
||||
$Res call({
|
||||
Object? workingText = null,
|
||||
Object? classMap = freezed,
|
||||
Object? p4kGlobalIni = freezed,
|
||||
Object? serverGlobalIni = freezed,
|
||||
Object? customizeGlobalIni = freezed,
|
||||
Object? apiLocalizationData = freezed,
|
||||
Object? p4kGlobalIniLines = null,
|
||||
Object? serverGlobalIniLines = null,
|
||||
Object? errorMessage = null,
|
||||
}) {
|
||||
return _then(_AdvancedLocalizationUIState(
|
||||
workingText: null == workingText
|
||||
? _self.workingText
|
||||
: workingText // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
classMap: freezed == classMap
|
||||
? _self._classMap
|
||||
: classMap // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, AppAdvancedLocalizationClassKeysData>?,
|
||||
p4kGlobalIni: freezed == p4kGlobalIni
|
||||
? _self.p4kGlobalIni
|
||||
: p4kGlobalIni // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
serverGlobalIni: freezed == serverGlobalIni
|
||||
? _self.serverGlobalIni
|
||||
: serverGlobalIni // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
customizeGlobalIni: freezed == customizeGlobalIni
|
||||
? _self.customizeGlobalIni
|
||||
: customizeGlobalIni // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
apiLocalizationData: freezed == apiLocalizationData
|
||||
? _self.apiLocalizationData
|
||||
: apiLocalizationData // ignore: cast_nullable_to_non_nullable
|
||||
as ScLocalizationData?,
|
||||
p4kGlobalIniLines: null == p4kGlobalIniLines
|
||||
? _self.p4kGlobalIniLines
|
||||
: p4kGlobalIniLines // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
serverGlobalIniLines: null == serverGlobalIniLines
|
||||
? _self.serverGlobalIniLines
|
||||
: serverGlobalIniLines // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
errorMessage: null == errorMessage
|
||||
? _self.errorMessage
|
||||
: errorMessage // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _AdvancedLocalizationUIState
|
||||
implements AdvancedLocalizationUIState {
|
||||
factory _AdvancedLocalizationUIState(
|
||||
{final String workingText,
|
||||
final Map<String, AppAdvancedLocalizationClassKeysData>? classMap,
|
||||
final String? p4kGlobalIni,
|
||||
final String? serverGlobalIni,
|
||||
final String? customizeGlobalIni,
|
||||
final ScLocalizationData? apiLocalizationData,
|
||||
final int p4kGlobalIniLines,
|
||||
final int serverGlobalIniLines,
|
||||
final String errorMessage}) = _$AdvancedLocalizationUIStateImpl;
|
||||
|
||||
@override
|
||||
String get workingText;
|
||||
@override
|
||||
Map<String, AppAdvancedLocalizationClassKeysData>? get classMap;
|
||||
@override
|
||||
String? get p4kGlobalIni;
|
||||
@override
|
||||
String? get serverGlobalIni;
|
||||
@override
|
||||
String? get customizeGlobalIni;
|
||||
@override
|
||||
ScLocalizationData? get apiLocalizationData;
|
||||
@override
|
||||
int get p4kGlobalIniLines;
|
||||
@override
|
||||
int get serverGlobalIniLines;
|
||||
@override
|
||||
String get errorMessage;
|
||||
|
||||
/// Create a copy of AdvancedLocalizationUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$AdvancedLocalizationUIStateImplCopyWith<_$AdvancedLocalizationUIStateImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
// dart format on
|
||||
|
@ -30,7 +30,7 @@ part 'localization_ui_model.g.dart';
|
||||
part 'localization_ui_model.freezed.dart';
|
||||
|
||||
@freezed
|
||||
class LocalizationUIState with _$LocalizationUIState {
|
||||
abstract class LocalizationUIState with _$LocalizationUIState {
|
||||
factory LocalizationUIState({
|
||||
String? selectedLanguage,
|
||||
String? installedCommunityInputMethodSupportVersion,
|
||||
|
@ -1,3 +1,4 @@
|
||||
// dart format width=80
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint
|
||||
@ -9,119 +10,78 @@ part of 'localization_ui_model.dart';
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// dart format off
|
||||
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 _$LocalizationUIState {
|
||||
String? get selectedLanguage => throw _privateConstructorUsedError;
|
||||
String? get installedCommunityInputMethodSupportVersion =>
|
||||
throw _privateConstructorUsedError;
|
||||
InputMethodApiLanguageData? get communityInputMethodLanguageData =>
|
||||
throw _privateConstructorUsedError;
|
||||
Map<String, ScLocalizationData>? get apiLocalizationData =>
|
||||
throw _privateConstructorUsedError;
|
||||
String get workingVersion => throw _privateConstructorUsedError;
|
||||
MapEntry<bool, String>? get patchStatus => throw _privateConstructorUsedError;
|
||||
bool? get isInstalledAdvanced => throw _privateConstructorUsedError;
|
||||
List<String>? get customizeList => throw _privateConstructorUsedError;
|
||||
String? get selectedLanguage;
|
||||
String? get installedCommunityInputMethodSupportVersion;
|
||||
InputMethodApiLanguageData? get communityInputMethodLanguageData;
|
||||
Map<String, ScLocalizationData>? get apiLocalizationData;
|
||||
String get workingVersion;
|
||||
MapEntry<bool, String>? get patchStatus;
|
||||
bool? get isInstalledAdvanced;
|
||||
List<String>? get customizeList;
|
||||
|
||||
/// Create a copy of LocalizationUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$LocalizationUIStateCopyWith<LocalizationUIState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $LocalizationUIStateCopyWith<$Res> {
|
||||
factory $LocalizationUIStateCopyWith(
|
||||
LocalizationUIState value, $Res Function(LocalizationUIState) then) =
|
||||
_$LocalizationUIStateCopyWithImpl<$Res, LocalizationUIState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{String? selectedLanguage,
|
||||
String? installedCommunityInputMethodSupportVersion,
|
||||
InputMethodApiLanguageData? communityInputMethodLanguageData,
|
||||
Map<String, ScLocalizationData>? apiLocalizationData,
|
||||
String workingVersion,
|
||||
MapEntry<bool, String>? patchStatus,
|
||||
bool? isInstalledAdvanced,
|
||||
List<String>? customizeList});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$LocalizationUIStateCopyWithImpl<$Res, $Val extends LocalizationUIState>
|
||||
implements $LocalizationUIStateCopyWith<$Res> {
|
||||
_$LocalizationUIStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of LocalizationUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
$LocalizationUIStateCopyWith<LocalizationUIState> get copyWith =>
|
||||
_$LocalizationUIStateCopyWithImpl<LocalizationUIState>(
|
||||
this as LocalizationUIState, _$identity);
|
||||
|
||||
@override
|
||||
$Res call({
|
||||
Object? selectedLanguage = freezed,
|
||||
Object? installedCommunityInputMethodSupportVersion = freezed,
|
||||
Object? communityInputMethodLanguageData = freezed,
|
||||
Object? apiLocalizationData = freezed,
|
||||
Object? workingVersion = null,
|
||||
Object? patchStatus = freezed,
|
||||
Object? isInstalledAdvanced = freezed,
|
||||
Object? customizeList = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
selectedLanguage: freezed == selectedLanguage
|
||||
? _value.selectedLanguage
|
||||
: selectedLanguage // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
installedCommunityInputMethodSupportVersion: freezed ==
|
||||
installedCommunityInputMethodSupportVersion
|
||||
? _value.installedCommunityInputMethodSupportVersion
|
||||
: installedCommunityInputMethodSupportVersion // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
communityInputMethodLanguageData: freezed ==
|
||||
communityInputMethodLanguageData
|
||||
? _value.communityInputMethodLanguageData
|
||||
: communityInputMethodLanguageData // ignore: cast_nullable_to_non_nullable
|
||||
as InputMethodApiLanguageData?,
|
||||
apiLocalizationData: freezed == apiLocalizationData
|
||||
? _value.apiLocalizationData
|
||||
: apiLocalizationData // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, ScLocalizationData>?,
|
||||
workingVersion: null == workingVersion
|
||||
? _value.workingVersion
|
||||
: workingVersion // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
patchStatus: freezed == patchStatus
|
||||
? _value.patchStatus
|
||||
: patchStatus // ignore: cast_nullable_to_non_nullable
|
||||
as MapEntry<bool, String>?,
|
||||
isInstalledAdvanced: freezed == isInstalledAdvanced
|
||||
? _value.isInstalledAdvanced
|
||||
: isInstalledAdvanced // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
customizeList: freezed == customizeList
|
||||
? _value.customizeList
|
||||
: customizeList // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>?,
|
||||
) as $Val);
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is LocalizationUIState &&
|
||||
(identical(other.selectedLanguage, selectedLanguage) ||
|
||||
other.selectedLanguage == selectedLanguage) &&
|
||||
(identical(other.installedCommunityInputMethodSupportVersion,
|
||||
installedCommunityInputMethodSupportVersion) ||
|
||||
other.installedCommunityInputMethodSupportVersion ==
|
||||
installedCommunityInputMethodSupportVersion) &&
|
||||
(identical(other.communityInputMethodLanguageData,
|
||||
communityInputMethodLanguageData) ||
|
||||
other.communityInputMethodLanguageData ==
|
||||
communityInputMethodLanguageData) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.apiLocalizationData, apiLocalizationData) &&
|
||||
(identical(other.workingVersion, workingVersion) ||
|
||||
other.workingVersion == workingVersion) &&
|
||||
(identical(other.patchStatus, patchStatus) ||
|
||||
other.patchStatus == patchStatus) &&
|
||||
(identical(other.isInstalledAdvanced, isInstalledAdvanced) ||
|
||||
other.isInstalledAdvanced == isInstalledAdvanced) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.customizeList, customizeList));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
selectedLanguage,
|
||||
installedCommunityInputMethodSupportVersion,
|
||||
communityInputMethodLanguageData,
|
||||
const DeepCollectionEquality().hash(apiLocalizationData),
|
||||
workingVersion,
|
||||
patchStatus,
|
||||
isInstalledAdvanced,
|
||||
const DeepCollectionEquality().hash(customizeList));
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'LocalizationUIState(selectedLanguage: $selectedLanguage, installedCommunityInputMethodSupportVersion: $installedCommunityInputMethodSupportVersion, communityInputMethodLanguageData: $communityInputMethodLanguageData, apiLocalizationData: $apiLocalizationData, workingVersion: $workingVersion, patchStatus: $patchStatus, isInstalledAdvanced: $isInstalledAdvanced, customizeList: $customizeList)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$LocalizationUIStateImplCopyWith<$Res>
|
||||
implements $LocalizationUIStateCopyWith<$Res> {
|
||||
factory _$$LocalizationUIStateImplCopyWith(_$LocalizationUIStateImpl value,
|
||||
$Res Function(_$LocalizationUIStateImpl) then) =
|
||||
__$$LocalizationUIStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
abstract mixin class $LocalizationUIStateCopyWith<$Res> {
|
||||
factory $LocalizationUIStateCopyWith(
|
||||
LocalizationUIState value, $Res Function(LocalizationUIState) _then) =
|
||||
_$LocalizationUIStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call(
|
||||
{String? selectedLanguage,
|
||||
@ -135,12 +95,12 @@ abstract class _$$LocalizationUIStateImplCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$LocalizationUIStateImplCopyWithImpl<$Res>
|
||||
extends _$LocalizationUIStateCopyWithImpl<$Res, _$LocalizationUIStateImpl>
|
||||
implements _$$LocalizationUIStateImplCopyWith<$Res> {
|
||||
__$$LocalizationUIStateImplCopyWithImpl(_$LocalizationUIStateImpl _value,
|
||||
$Res Function(_$LocalizationUIStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
class _$LocalizationUIStateCopyWithImpl<$Res>
|
||||
implements $LocalizationUIStateCopyWith<$Res> {
|
||||
_$LocalizationUIStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final LocalizationUIState _self;
|
||||
final $Res Function(LocalizationUIState) _then;
|
||||
|
||||
/// Create a copy of LocalizationUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@ -156,39 +116,39 @@ class __$$LocalizationUIStateImplCopyWithImpl<$Res>
|
||||
Object? isInstalledAdvanced = freezed,
|
||||
Object? customizeList = freezed,
|
||||
}) {
|
||||
return _then(_$LocalizationUIStateImpl(
|
||||
return _then(_self.copyWith(
|
||||
selectedLanguage: freezed == selectedLanguage
|
||||
? _value.selectedLanguage
|
||||
? _self.selectedLanguage
|
||||
: selectedLanguage // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
installedCommunityInputMethodSupportVersion: freezed ==
|
||||
installedCommunityInputMethodSupportVersion
|
||||
? _value.installedCommunityInputMethodSupportVersion
|
||||
? _self.installedCommunityInputMethodSupportVersion
|
||||
: installedCommunityInputMethodSupportVersion // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
communityInputMethodLanguageData: freezed ==
|
||||
communityInputMethodLanguageData
|
||||
? _value.communityInputMethodLanguageData
|
||||
? _self.communityInputMethodLanguageData
|
||||
: communityInputMethodLanguageData // ignore: cast_nullable_to_non_nullable
|
||||
as InputMethodApiLanguageData?,
|
||||
apiLocalizationData: freezed == apiLocalizationData
|
||||
? _value._apiLocalizationData
|
||||
? _self.apiLocalizationData
|
||||
: apiLocalizationData // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, ScLocalizationData>?,
|
||||
workingVersion: null == workingVersion
|
||||
? _value.workingVersion
|
||||
? _self.workingVersion
|
||||
: workingVersion // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
patchStatus: freezed == patchStatus
|
||||
? _value.patchStatus
|
||||
? _self.patchStatus
|
||||
: patchStatus // ignore: cast_nullable_to_non_nullable
|
||||
as MapEntry<bool, String>?,
|
||||
isInstalledAdvanced: freezed == isInstalledAdvanced
|
||||
? _value.isInstalledAdvanced
|
||||
? _self.isInstalledAdvanced
|
||||
: isInstalledAdvanced // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
customizeList: freezed == customizeList
|
||||
? _value._customizeList
|
||||
? _self.customizeList
|
||||
: customizeList // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>?,
|
||||
));
|
||||
@ -197,8 +157,8 @@ class __$$LocalizationUIStateImplCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$LocalizationUIStateImpl implements _LocalizationUIState {
|
||||
_$LocalizationUIStateImpl(
|
||||
class _LocalizationUIState implements LocalizationUIState {
|
||||
_LocalizationUIState(
|
||||
{this.selectedLanguage,
|
||||
this.installedCommunityInputMethodSupportVersion,
|
||||
this.communityInputMethodLanguageData,
|
||||
@ -244,16 +204,20 @@ class _$LocalizationUIStateImpl implements _LocalizationUIState {
|
||||
return EqualUnmodifiableListView(value);
|
||||
}
|
||||
|
||||
/// Create a copy of LocalizationUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
String toString() {
|
||||
return 'LocalizationUIState(selectedLanguage: $selectedLanguage, installedCommunityInputMethodSupportVersion: $installedCommunityInputMethodSupportVersion, communityInputMethodLanguageData: $communityInputMethodLanguageData, apiLocalizationData: $apiLocalizationData, workingVersion: $workingVersion, patchStatus: $patchStatus, isInstalledAdvanced: $isInstalledAdvanced, customizeList: $customizeList)';
|
||||
}
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$LocalizationUIStateCopyWith<_LocalizationUIState> get copyWith =>
|
||||
__$LocalizationUIStateCopyWithImpl<_LocalizationUIState>(
|
||||
this, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$LocalizationUIStateImpl &&
|
||||
other is _LocalizationUIState &&
|
||||
(identical(other.selectedLanguage, selectedLanguage) ||
|
||||
other.selectedLanguage == selectedLanguage) &&
|
||||
(identical(other.installedCommunityInputMethodSupportVersion,
|
||||
@ -288,48 +252,90 @@ class _$LocalizationUIStateImpl implements _LocalizationUIState {
|
||||
isInstalledAdvanced,
|
||||
const DeepCollectionEquality().hash(_customizeList));
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'LocalizationUIState(selectedLanguage: $selectedLanguage, installedCommunityInputMethodSupportVersion: $installedCommunityInputMethodSupportVersion, communityInputMethodLanguageData: $communityInputMethodLanguageData, apiLocalizationData: $apiLocalizationData, workingVersion: $workingVersion, patchStatus: $patchStatus, isInstalledAdvanced: $isInstalledAdvanced, customizeList: $customizeList)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$LocalizationUIStateCopyWith<$Res>
|
||||
implements $LocalizationUIStateCopyWith<$Res> {
|
||||
factory _$LocalizationUIStateCopyWith(_LocalizationUIState value,
|
||||
$Res Function(_LocalizationUIState) _then) =
|
||||
__$LocalizationUIStateCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{String? selectedLanguage,
|
||||
String? installedCommunityInputMethodSupportVersion,
|
||||
InputMethodApiLanguageData? communityInputMethodLanguageData,
|
||||
Map<String, ScLocalizationData>? apiLocalizationData,
|
||||
String workingVersion,
|
||||
MapEntry<bool, String>? patchStatus,
|
||||
bool? isInstalledAdvanced,
|
||||
List<String>? customizeList});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$LocalizationUIStateCopyWithImpl<$Res>
|
||||
implements _$LocalizationUIStateCopyWith<$Res> {
|
||||
__$LocalizationUIStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _LocalizationUIState _self;
|
||||
final $Res Function(_LocalizationUIState) _then;
|
||||
|
||||
/// Create a copy of LocalizationUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$LocalizationUIStateImplCopyWith<_$LocalizationUIStateImpl> get copyWith =>
|
||||
__$$LocalizationUIStateImplCopyWithImpl<_$LocalizationUIStateImpl>(
|
||||
this, _$identity);
|
||||
$Res call({
|
||||
Object? selectedLanguage = freezed,
|
||||
Object? installedCommunityInputMethodSupportVersion = freezed,
|
||||
Object? communityInputMethodLanguageData = freezed,
|
||||
Object? apiLocalizationData = freezed,
|
||||
Object? workingVersion = null,
|
||||
Object? patchStatus = freezed,
|
||||
Object? isInstalledAdvanced = freezed,
|
||||
Object? customizeList = freezed,
|
||||
}) {
|
||||
return _then(_LocalizationUIState(
|
||||
selectedLanguage: freezed == selectedLanguage
|
||||
? _self.selectedLanguage
|
||||
: selectedLanguage // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
installedCommunityInputMethodSupportVersion: freezed ==
|
||||
installedCommunityInputMethodSupportVersion
|
||||
? _self.installedCommunityInputMethodSupportVersion
|
||||
: installedCommunityInputMethodSupportVersion // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
communityInputMethodLanguageData: freezed ==
|
||||
communityInputMethodLanguageData
|
||||
? _self.communityInputMethodLanguageData
|
||||
: communityInputMethodLanguageData // ignore: cast_nullable_to_non_nullable
|
||||
as InputMethodApiLanguageData?,
|
||||
apiLocalizationData: freezed == apiLocalizationData
|
||||
? _self._apiLocalizationData
|
||||
: apiLocalizationData // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, ScLocalizationData>?,
|
||||
workingVersion: null == workingVersion
|
||||
? _self.workingVersion
|
||||
: workingVersion // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
patchStatus: freezed == patchStatus
|
||||
? _self.patchStatus
|
||||
: patchStatus // ignore: cast_nullable_to_non_nullable
|
||||
as MapEntry<bool, String>?,
|
||||
isInstalledAdvanced: freezed == isInstalledAdvanced
|
||||
? _self.isInstalledAdvanced
|
||||
: isInstalledAdvanced // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
customizeList: freezed == customizeList
|
||||
? _self._customizeList
|
||||
: customizeList // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>?,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _LocalizationUIState implements LocalizationUIState {
|
||||
factory _LocalizationUIState(
|
||||
{final String? selectedLanguage,
|
||||
final String? installedCommunityInputMethodSupportVersion,
|
||||
final InputMethodApiLanguageData? communityInputMethodLanguageData,
|
||||
final Map<String, ScLocalizationData>? apiLocalizationData,
|
||||
final String workingVersion,
|
||||
final MapEntry<bool, String>? patchStatus,
|
||||
final bool? isInstalledAdvanced,
|
||||
final List<String>? customizeList}) = _$LocalizationUIStateImpl;
|
||||
|
||||
@override
|
||||
String? get selectedLanguage;
|
||||
@override
|
||||
String? get installedCommunityInputMethodSupportVersion;
|
||||
@override
|
||||
InputMethodApiLanguageData? get communityInputMethodLanguageData;
|
||||
@override
|
||||
Map<String, ScLocalizationData>? get apiLocalizationData;
|
||||
@override
|
||||
String get workingVersion;
|
||||
@override
|
||||
MapEntry<bool, String>? get patchStatus;
|
||||
@override
|
||||
bool? get isInstalledAdvanced;
|
||||
@override
|
||||
List<String>? get customizeList;
|
||||
|
||||
/// Create a copy of LocalizationUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$LocalizationUIStateImplCopyWith<_$LocalizationUIStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
// dart format on
|
||||
|
@ -19,7 +19,7 @@ part 'performance_ui_model.freezed.dart';
|
||||
part 'performance_ui_model.g.dart';
|
||||
|
||||
@freezed
|
||||
class HomePerformanceUIState with _$HomePerformanceUIState {
|
||||
abstract class HomePerformanceUIState with _$HomePerformanceUIState {
|
||||
factory HomePerformanceUIState({
|
||||
@Default(true) bool showGraphicsPerformanceTip,
|
||||
@Default(false) bool enabled,
|
||||
|
@ -1,3 +1,4 @@
|
||||
// dart format width=80
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint
|
||||
@ -9,89 +10,59 @@ part of 'performance_ui_model.dart';
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// dart format off
|
||||
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 _$HomePerformanceUIState {
|
||||
bool get showGraphicsPerformanceTip => throw _privateConstructorUsedError;
|
||||
bool get enabled => throw _privateConstructorUsedError;
|
||||
Map<String, List<GamePerformanceData>>? get performanceMap =>
|
||||
throw _privateConstructorUsedError;
|
||||
String get workingString => throw _privateConstructorUsedError;
|
||||
bool get showGraphicsPerformanceTip;
|
||||
bool get enabled;
|
||||
Map<String, List<GamePerformanceData>>? get performanceMap;
|
||||
String get workingString;
|
||||
|
||||
/// Create a copy of HomePerformanceUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$HomePerformanceUIStateCopyWith<HomePerformanceUIState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $HomePerformanceUIStateCopyWith<$Res> {
|
||||
factory $HomePerformanceUIStateCopyWith(HomePerformanceUIState value,
|
||||
$Res Function(HomePerformanceUIState) then) =
|
||||
_$HomePerformanceUIStateCopyWithImpl<$Res, HomePerformanceUIState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool showGraphicsPerformanceTip,
|
||||
bool enabled,
|
||||
Map<String, List<GamePerformanceData>>? performanceMap,
|
||||
String workingString});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$HomePerformanceUIStateCopyWithImpl<$Res,
|
||||
$Val extends HomePerformanceUIState>
|
||||
implements $HomePerformanceUIStateCopyWith<$Res> {
|
||||
_$HomePerformanceUIStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of HomePerformanceUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
$HomePerformanceUIStateCopyWith<HomePerformanceUIState> get copyWith =>
|
||||
_$HomePerformanceUIStateCopyWithImpl<HomePerformanceUIState>(
|
||||
this as HomePerformanceUIState, _$identity);
|
||||
|
||||
@override
|
||||
$Res call({
|
||||
Object? showGraphicsPerformanceTip = null,
|
||||
Object? enabled = null,
|
||||
Object? performanceMap = freezed,
|
||||
Object? workingString = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
showGraphicsPerformanceTip: null == showGraphicsPerformanceTip
|
||||
? _value.showGraphicsPerformanceTip
|
||||
: showGraphicsPerformanceTip // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
enabled: null == enabled
|
||||
? _value.enabled
|
||||
: enabled // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
performanceMap: freezed == performanceMap
|
||||
? _value.performanceMap
|
||||
: performanceMap // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, List<GamePerformanceData>>?,
|
||||
workingString: null == workingString
|
||||
? _value.workingString
|
||||
: workingString // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
) as $Val);
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is HomePerformanceUIState &&
|
||||
(identical(other.showGraphicsPerformanceTip,
|
||||
showGraphicsPerformanceTip) ||
|
||||
other.showGraphicsPerformanceTip ==
|
||||
showGraphicsPerformanceTip) &&
|
||||
(identical(other.enabled, enabled) || other.enabled == enabled) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.performanceMap, performanceMap) &&
|
||||
(identical(other.workingString, workingString) ||
|
||||
other.workingString == workingString));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
showGraphicsPerformanceTip,
|
||||
enabled,
|
||||
const DeepCollectionEquality().hash(performanceMap),
|
||||
workingString);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomePerformanceUIState(showGraphicsPerformanceTip: $showGraphicsPerformanceTip, enabled: $enabled, performanceMap: $performanceMap, workingString: $workingString)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$HomePerformanceUIStateImplCopyWith<$Res>
|
||||
implements $HomePerformanceUIStateCopyWith<$Res> {
|
||||
factory _$$HomePerformanceUIStateImplCopyWith(
|
||||
_$HomePerformanceUIStateImpl value,
|
||||
$Res Function(_$HomePerformanceUIStateImpl) then) =
|
||||
__$$HomePerformanceUIStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
abstract mixin class $HomePerformanceUIStateCopyWith<$Res> {
|
||||
factory $HomePerformanceUIStateCopyWith(HomePerformanceUIState value,
|
||||
$Res Function(HomePerformanceUIState) _then) =
|
||||
_$HomePerformanceUIStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool showGraphicsPerformanceTip,
|
||||
@ -101,14 +72,12 @@ abstract class _$$HomePerformanceUIStateImplCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$HomePerformanceUIStateImplCopyWithImpl<$Res>
|
||||
extends _$HomePerformanceUIStateCopyWithImpl<$Res,
|
||||
_$HomePerformanceUIStateImpl>
|
||||
implements _$$HomePerformanceUIStateImplCopyWith<$Res> {
|
||||
__$$HomePerformanceUIStateImplCopyWithImpl(
|
||||
_$HomePerformanceUIStateImpl _value,
|
||||
$Res Function(_$HomePerformanceUIStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
class _$HomePerformanceUIStateCopyWithImpl<$Res>
|
||||
implements $HomePerformanceUIStateCopyWith<$Res> {
|
||||
_$HomePerformanceUIStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final HomePerformanceUIState _self;
|
||||
final $Res Function(HomePerformanceUIState) _then;
|
||||
|
||||
/// Create a copy of HomePerformanceUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@ -120,21 +89,21 @@ class __$$HomePerformanceUIStateImplCopyWithImpl<$Res>
|
||||
Object? performanceMap = freezed,
|
||||
Object? workingString = null,
|
||||
}) {
|
||||
return _then(_$HomePerformanceUIStateImpl(
|
||||
return _then(_self.copyWith(
|
||||
showGraphicsPerformanceTip: null == showGraphicsPerformanceTip
|
||||
? _value.showGraphicsPerformanceTip
|
||||
? _self.showGraphicsPerformanceTip
|
||||
: showGraphicsPerformanceTip // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
enabled: null == enabled
|
||||
? _value.enabled
|
||||
? _self.enabled
|
||||
: enabled // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
performanceMap: freezed == performanceMap
|
||||
? _value._performanceMap
|
||||
? _self.performanceMap
|
||||
: performanceMap // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, List<GamePerformanceData>>?,
|
||||
workingString: null == workingString
|
||||
? _value.workingString
|
||||
? _self.workingString
|
||||
: workingString // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
));
|
||||
@ -143,8 +112,8 @@ class __$$HomePerformanceUIStateImplCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$HomePerformanceUIStateImpl implements _HomePerformanceUIState {
|
||||
_$HomePerformanceUIStateImpl(
|
||||
class _HomePerformanceUIState implements HomePerformanceUIState {
|
||||
_HomePerformanceUIState(
|
||||
{this.showGraphicsPerformanceTip = true,
|
||||
this.enabled = false,
|
||||
final Map<String, List<GamePerformanceData>>? performanceMap,
|
||||
@ -171,16 +140,20 @@ class _$HomePerformanceUIStateImpl implements _HomePerformanceUIState {
|
||||
@JsonKey()
|
||||
final String workingString;
|
||||
|
||||
/// Create a copy of HomePerformanceUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomePerformanceUIState(showGraphicsPerformanceTip: $showGraphicsPerformanceTip, enabled: $enabled, performanceMap: $performanceMap, workingString: $workingString)';
|
||||
}
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$HomePerformanceUIStateCopyWith<_HomePerformanceUIState> get copyWith =>
|
||||
__$HomePerformanceUIStateCopyWithImpl<_HomePerformanceUIState>(
|
||||
this, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$HomePerformanceUIStateImpl &&
|
||||
other is _HomePerformanceUIState &&
|
||||
(identical(other.showGraphicsPerformanceTip,
|
||||
showGraphicsPerformanceTip) ||
|
||||
other.showGraphicsPerformanceTip ==
|
||||
@ -200,36 +173,64 @@ class _$HomePerformanceUIStateImpl implements _HomePerformanceUIState {
|
||||
const DeepCollectionEquality().hash(_performanceMap),
|
||||
workingString);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomePerformanceUIState(showGraphicsPerformanceTip: $showGraphicsPerformanceTip, enabled: $enabled, performanceMap: $performanceMap, workingString: $workingString)';
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$HomePerformanceUIStateCopyWith<$Res>
|
||||
implements $HomePerformanceUIStateCopyWith<$Res> {
|
||||
factory _$HomePerformanceUIStateCopyWith(_HomePerformanceUIState value,
|
||||
$Res Function(_HomePerformanceUIState) _then) =
|
||||
__$HomePerformanceUIStateCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool showGraphicsPerformanceTip,
|
||||
bool enabled,
|
||||
Map<String, List<GamePerformanceData>>? performanceMap,
|
||||
String workingString});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$HomePerformanceUIStateCopyWithImpl<$Res>
|
||||
implements _$HomePerformanceUIStateCopyWith<$Res> {
|
||||
__$HomePerformanceUIStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _HomePerformanceUIState _self;
|
||||
final $Res Function(_HomePerformanceUIState) _then;
|
||||
|
||||
/// Create a copy of HomePerformanceUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$HomePerformanceUIStateImplCopyWith<_$HomePerformanceUIStateImpl>
|
||||
get copyWith => __$$HomePerformanceUIStateImplCopyWithImpl<
|
||||
_$HomePerformanceUIStateImpl>(this, _$identity);
|
||||
$Res call({
|
||||
Object? showGraphicsPerformanceTip = null,
|
||||
Object? enabled = null,
|
||||
Object? performanceMap = freezed,
|
||||
Object? workingString = null,
|
||||
}) {
|
||||
return _then(_HomePerformanceUIState(
|
||||
showGraphicsPerformanceTip: null == showGraphicsPerformanceTip
|
||||
? _self.showGraphicsPerformanceTip
|
||||
: showGraphicsPerformanceTip // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
enabled: null == enabled
|
||||
? _self.enabled
|
||||
: enabled // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
performanceMap: freezed == performanceMap
|
||||
? _self._performanceMap
|
||||
: performanceMap // ignore: cast_nullable_to_non_nullable
|
||||
as Map<String, List<GamePerformanceData>>?,
|
||||
workingString: null == workingString
|
||||
? _self.workingString
|
||||
: workingString // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _HomePerformanceUIState implements HomePerformanceUIState {
|
||||
factory _HomePerformanceUIState(
|
||||
{final bool showGraphicsPerformanceTip,
|
||||
final bool enabled,
|
||||
final Map<String, List<GamePerformanceData>>? performanceMap,
|
||||
final String workingString}) = _$HomePerformanceUIStateImpl;
|
||||
|
||||
@override
|
||||
bool get showGraphicsPerformanceTip;
|
||||
@override
|
||||
bool get enabled;
|
||||
@override
|
||||
Map<String, List<GamePerformanceData>>? get performanceMap;
|
||||
@override
|
||||
String get workingString;
|
||||
|
||||
/// Create a copy of HomePerformanceUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$HomePerformanceUIStateImplCopyWith<_$HomePerformanceUIStateImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
// dart format on
|
||||
|
Reference in New Issue
Block a user