mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-29 13:45:07 +08:00
feat:riverpod 迁移 HomeUI
This commit is contained in:
458
lib/ui/home/home_ui_model.freezed.dart
Normal file
458
lib/ui/home/home_ui_model.freezed.dart
Normal file
@ -0,0 +1,458 @@
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
|
||||
|
||||
part of 'home_ui_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
T _$identity<T>(T value) => value;
|
||||
|
||||
final _privateConstructorUsedError = UnsupportedError(
|
||||
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
||||
|
||||
/// @nodoc
|
||||
mixin _$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;
|
||||
bool get isCurGameRunning => 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;
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
$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,
|
||||
bool isCurGameRunning,
|
||||
String lastScreenInfo,
|
||||
List<RssItem>? rssVideoItems,
|
||||
List<RssItem>? rssTextItems,
|
||||
MapEntry<String, bool>? localizationUpdateInfo,
|
||||
List<dynamic>? scServerStatus,
|
||||
List<CountdownFestivalItemData>? countdownFestivalListData});
|
||||
}
|
||||
|
||||
/// @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;
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? appPlacardData = freezed,
|
||||
Object? isFixing = null,
|
||||
Object? isFixingString = null,
|
||||
Object? scInstalledPath = freezed,
|
||||
Object? scInstallPaths = null,
|
||||
Object? webLocalizationVersionsData = freezed,
|
||||
Object? isCurGameRunning = null,
|
||||
Object? lastScreenInfo = null,
|
||||
Object? rssVideoItems = freezed,
|
||||
Object? rssTextItems = freezed,
|
||||
Object? localizationUpdateInfo = freezed,
|
||||
Object? scServerStatus = freezed,
|
||||
Object? countdownFestivalListData = freezed,
|
||||
}) {
|
||||
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?,
|
||||
isCurGameRunning: null == isCurGameRunning
|
||||
? _value.isCurGameRunning
|
||||
: isCurGameRunning // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
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>?,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$HomeUIModelStateImplCopyWith<$Res>
|
||||
implements $HomeUIModelStateCopyWith<$Res> {
|
||||
factory _$$HomeUIModelStateImplCopyWith(_$HomeUIModelStateImpl value,
|
||||
$Res Function(_$HomeUIModelStateImpl) then) =
|
||||
__$$HomeUIModelStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{AppPlacardData? appPlacardData,
|
||||
bool isFixing,
|
||||
String isFixingString,
|
||||
String? scInstalledPath,
|
||||
List<String> scInstallPaths,
|
||||
AppWebLocalizationVersionsData? webLocalizationVersionsData,
|
||||
bool isCurGameRunning,
|
||||
String lastScreenInfo,
|
||||
List<RssItem>? rssVideoItems,
|
||||
List<RssItem>? rssTextItems,
|
||||
MapEntry<String, bool>? localizationUpdateInfo,
|
||||
List<dynamic>? scServerStatus,
|
||||
List<CountdownFestivalItemData>? countdownFestivalListData});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$HomeUIModelStateImplCopyWithImpl<$Res>
|
||||
extends _$HomeUIModelStateCopyWithImpl<$Res, _$HomeUIModelStateImpl>
|
||||
implements _$$HomeUIModelStateImplCopyWith<$Res> {
|
||||
__$$HomeUIModelStateImplCopyWithImpl(_$HomeUIModelStateImpl _value,
|
||||
$Res Function(_$HomeUIModelStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? appPlacardData = freezed,
|
||||
Object? isFixing = null,
|
||||
Object? isFixingString = null,
|
||||
Object? scInstalledPath = freezed,
|
||||
Object? scInstallPaths = null,
|
||||
Object? webLocalizationVersionsData = freezed,
|
||||
Object? isCurGameRunning = null,
|
||||
Object? lastScreenInfo = null,
|
||||
Object? rssVideoItems = freezed,
|
||||
Object? rssTextItems = freezed,
|
||||
Object? localizationUpdateInfo = freezed,
|
||||
Object? scServerStatus = freezed,
|
||||
Object? countdownFestivalListData = freezed,
|
||||
}) {
|
||||
return _then(_$HomeUIModelStateImpl(
|
||||
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?,
|
||||
isCurGameRunning: null == isCurGameRunning
|
||||
? _value.isCurGameRunning
|
||||
: isCurGameRunning // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
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>?,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$HomeUIModelStateImpl implements _HomeUIModelState {
|
||||
_$HomeUIModelStateImpl(
|
||||
{this.appPlacardData,
|
||||
this.isFixing = false,
|
||||
this.isFixingString = "",
|
||||
this.scInstalledPath,
|
||||
final List<String> scInstallPaths = const [],
|
||||
this.webLocalizationVersionsData,
|
||||
this.isCurGameRunning = false,
|
||||
this.lastScreenInfo = "",
|
||||
final List<RssItem>? rssVideoItems,
|
||||
final List<RssItem>? rssTextItems,
|
||||
this.localizationUpdateInfo,
|
||||
final List<dynamic>? scServerStatus,
|
||||
final List<CountdownFestivalItemData>? countdownFestivalListData})
|
||||
: _scInstallPaths = scInstallPaths,
|
||||
_rssVideoItems = rssVideoItems,
|
||||
_rssTextItems = rssTextItems,
|
||||
_scServerStatus = scServerStatus,
|
||||
_countdownFestivalListData = countdownFestivalListData;
|
||||
|
||||
@override
|
||||
final AppPlacardData? appPlacardData;
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool isFixing;
|
||||
@override
|
||||
@JsonKey()
|
||||
final String isFixingString;
|
||||
@override
|
||||
final String? scInstalledPath;
|
||||
final List<String> _scInstallPaths;
|
||||
@override
|
||||
@JsonKey()
|
||||
List<String> get scInstallPaths {
|
||||
if (_scInstallPaths is EqualUnmodifiableListView) return _scInstallPaths;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_scInstallPaths);
|
||||
}
|
||||
|
||||
@override
|
||||
final AppWebLocalizationVersionsData? webLocalizationVersionsData;
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool isCurGameRunning;
|
||||
@override
|
||||
@JsonKey()
|
||||
final String lastScreenInfo;
|
||||
final List<RssItem>? _rssVideoItems;
|
||||
@override
|
||||
List<RssItem>? get rssVideoItems {
|
||||
final value = _rssVideoItems;
|
||||
if (value == null) return null;
|
||||
if (_rssVideoItems is EqualUnmodifiableListView) return _rssVideoItems;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(value);
|
||||
}
|
||||
|
||||
final List<RssItem>? _rssTextItems;
|
||||
@override
|
||||
List<RssItem>? get rssTextItems {
|
||||
final value = _rssTextItems;
|
||||
if (value == null) return null;
|
||||
if (_rssTextItems is EqualUnmodifiableListView) return _rssTextItems;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(value);
|
||||
}
|
||||
|
||||
@override
|
||||
final MapEntry<String, bool>? localizationUpdateInfo;
|
||||
final List<dynamic>? _scServerStatus;
|
||||
@override
|
||||
List<dynamic>? get scServerStatus {
|
||||
final value = _scServerStatus;
|
||||
if (value == null) return null;
|
||||
if (_scServerStatus is EqualUnmodifiableListView) return _scServerStatus;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(value);
|
||||
}
|
||||
|
||||
final List<CountdownFestivalItemData>? _countdownFestivalListData;
|
||||
@override
|
||||
List<CountdownFestivalItemData>? get countdownFestivalListData {
|
||||
final value = _countdownFestivalListData;
|
||||
if (value == null) return null;
|
||||
if (_countdownFestivalListData is EqualUnmodifiableListView)
|
||||
return _countdownFestivalListData;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(value);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'HomeUIModelState(appPlacardData: $appPlacardData, isFixing: $isFixing, isFixingString: $isFixingString, scInstalledPath: $scInstalledPath, scInstallPaths: $scInstallPaths, webLocalizationVersionsData: $webLocalizationVersionsData, isCurGameRunning: $isCurGameRunning, lastScreenInfo: $lastScreenInfo, rssVideoItems: $rssVideoItems, rssTextItems: $rssTextItems, localizationUpdateInfo: $localizationUpdateInfo, scServerStatus: $scServerStatus, countdownFestivalListData: $countdownFestivalListData)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$HomeUIModelStateImpl &&
|
||||
(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.isCurGameRunning, isCurGameRunning) ||
|
||||
other.isCurGameRunning == isCurGameRunning) &&
|
||||
(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));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
appPlacardData,
|
||||
isFixing,
|
||||
isFixingString,
|
||||
scInstalledPath,
|
||||
const DeepCollectionEquality().hash(_scInstallPaths),
|
||||
webLocalizationVersionsData,
|
||||
isCurGameRunning,
|
||||
lastScreenInfo,
|
||||
const DeepCollectionEquality().hash(_rssVideoItems),
|
||||
const DeepCollectionEquality().hash(_rssTextItems),
|
||||
localizationUpdateInfo,
|
||||
const DeepCollectionEquality().hash(_scServerStatus),
|
||||
const DeepCollectionEquality().hash(_countdownFestivalListData));
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$HomeUIModelStateImplCopyWith<_$HomeUIModelStateImpl> get copyWith =>
|
||||
__$$HomeUIModelStateImplCopyWithImpl<_$HomeUIModelStateImpl>(
|
||||
this, _$identity);
|
||||
}
|
||||
|
||||
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 bool isCurGameRunning,
|
||||
final String lastScreenInfo,
|
||||
final List<RssItem>? rssVideoItems,
|
||||
final List<RssItem>? rssTextItems,
|
||||
final MapEntry<String, bool>? localizationUpdateInfo,
|
||||
final List<dynamic>? scServerStatus,
|
||||
final List<CountdownFestivalItemData>? countdownFestivalListData}) =
|
||||
_$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
|
||||
bool get isCurGameRunning;
|
||||
@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
|
||||
@JsonKey(ignore: true)
|
||||
_$$HomeUIModelStateImplCopyWith<_$HomeUIModelStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
Reference in New Issue
Block a user