mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-10-15 04:52:39 +08:00
bump: flutter 3.35.1
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
// dart format width=80
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// coverage:ignore-file
|
||||
// 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
|
||||
|
||||
@@ -12,66 +11,47 @@ part of 'rsi_launcher_enhance_dialog_ui.dart';
|
||||
|
||||
// dart format off
|
||||
T _$identity<T>(T value) => value;
|
||||
|
||||
/// @nodoc
|
||||
mixin _$RSILauncherStateData {
|
||||
String get version;
|
||||
asar_api.RsiLauncherAsarData get data;
|
||||
String get serverData;
|
||||
bool get isPatchInstalled;
|
||||
String? get enabledLocalization;
|
||||
bool? get enableDownloaderBoost;
|
||||
|
||||
/// Create a copy of RSILauncherStateData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
$RSILauncherStateDataCopyWith<RSILauncherStateData> get copyWith =>
|
||||
_$RSILauncherStateDataCopyWithImpl<RSILauncherStateData>(
|
||||
this as RSILauncherStateData, _$identity);
|
||||
String get version; asar_api.RsiLauncherAsarData get data; String get serverData; bool get isPatchInstalled; String? get enabledLocalization; bool? get enableDownloaderBoost;
|
||||
/// Create a copy of RSILauncherStateData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
$RSILauncherStateDataCopyWith<RSILauncherStateData> get copyWith => _$RSILauncherStateDataCopyWithImpl<RSILauncherStateData>(this as RSILauncherStateData, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is RSILauncherStateData &&
|
||||
(identical(other.version, version) || other.version == version) &&
|
||||
(identical(other.data, data) || other.data == data) &&
|
||||
(identical(other.serverData, serverData) ||
|
||||
other.serverData == serverData) &&
|
||||
(identical(other.isPatchInstalled, isPatchInstalled) ||
|
||||
other.isPatchInstalled == isPatchInstalled) &&
|
||||
(identical(other.enabledLocalization, enabledLocalization) ||
|
||||
other.enabledLocalization == enabledLocalization) &&
|
||||
(identical(other.enableDownloaderBoost, enableDownloaderBoost) ||
|
||||
other.enableDownloaderBoost == enableDownloaderBoost));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, version, data, serverData,
|
||||
isPatchInstalled, enabledLocalization, enableDownloaderBoost);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'RSILauncherStateData(version: $version, data: $data, serverData: $serverData, isPatchInstalled: $isPatchInstalled, enabledLocalization: $enabledLocalization, enableDownloaderBoost: $enableDownloaderBoost)';
|
||||
}
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is RSILauncherStateData&&(identical(other.version, version) || other.version == version)&&(identical(other.data, data) || other.data == data)&&(identical(other.serverData, serverData) || other.serverData == serverData)&&(identical(other.isPatchInstalled, isPatchInstalled) || other.isPatchInstalled == isPatchInstalled)&&(identical(other.enabledLocalization, enabledLocalization) || other.enabledLocalization == enabledLocalization)&&(identical(other.enableDownloaderBoost, enableDownloaderBoost) || other.enableDownloaderBoost == enableDownloaderBoost));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,version,data,serverData,isPatchInstalled,enabledLocalization,enableDownloaderBoost);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'RSILauncherStateData(version: $version, data: $data, serverData: $serverData, isPatchInstalled: $isPatchInstalled, enabledLocalization: $enabledLocalization, enableDownloaderBoost: $enableDownloaderBoost)';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class $RSILauncherStateDataCopyWith<$Res> {
|
||||
factory $RSILauncherStateDataCopyWith(RSILauncherStateData value,
|
||||
$Res Function(RSILauncherStateData) _then) =
|
||||
_$RSILauncherStateDataCopyWithImpl;
|
||||
@useResult
|
||||
$Res call(
|
||||
{String version,
|
||||
asar_api.RsiLauncherAsarData data,
|
||||
String serverData,
|
||||
bool isPatchInstalled,
|
||||
String? enabledLocalization,
|
||||
bool? enableDownloaderBoost});
|
||||
}
|
||||
abstract mixin class $RSILauncherStateDataCopyWith<$Res> {
|
||||
factory $RSILauncherStateDataCopyWith(RSILauncherStateData value, $Res Function(RSILauncherStateData) _then) = _$RSILauncherStateDataCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({
|
||||
String version, asar_api.RsiLauncherAsarData data, String serverData, bool isPatchInstalled, String? enabledLocalization, bool? enableDownloaderBoost
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
/// @nodoc
|
||||
class _$RSILauncherStateDataCopyWithImpl<$Res>
|
||||
implements $RSILauncherStateDataCopyWith<$Res> {
|
||||
@@ -80,125 +60,204 @@ class _$RSILauncherStateDataCopyWithImpl<$Res>
|
||||
final RSILauncherStateData _self;
|
||||
final $Res Function(RSILauncherStateData) _then;
|
||||
|
||||
/// Create a copy of RSILauncherStateData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? version = null,
|
||||
Object? data = null,
|
||||
Object? serverData = null,
|
||||
Object? isPatchInstalled = null,
|
||||
Object? enabledLocalization = freezed,
|
||||
Object? enableDownloaderBoost = freezed,
|
||||
}) {
|
||||
return _then(_self.copyWith(
|
||||
version: null == version
|
||||
? _self.version
|
||||
: version // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
data: null == data
|
||||
? _self.data
|
||||
: data // ignore: cast_nullable_to_non_nullable
|
||||
as asar_api.RsiLauncherAsarData,
|
||||
serverData: null == serverData
|
||||
? _self.serverData
|
||||
: serverData // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
isPatchInstalled: null == isPatchInstalled
|
||||
? _self.isPatchInstalled
|
||||
: isPatchInstalled // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
enabledLocalization: freezed == enabledLocalization
|
||||
? _self.enabledLocalization
|
||||
: enabledLocalization // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
enableDownloaderBoost: freezed == enableDownloaderBoost
|
||||
? _self.enableDownloaderBoost
|
||||
: enableDownloaderBoost // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
));
|
||||
}
|
||||
/// Create a copy of RSILauncherStateData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline') @override $Res call({Object? version = null,Object? data = null,Object? serverData = null,Object? isPatchInstalled = null,Object? enabledLocalization = freezed,Object? enableDownloaderBoost = freezed,}) {
|
||||
return _then(_self.copyWith(
|
||||
version: null == version ? _self.version : version // ignore: cast_nullable_to_non_nullable
|
||||
as String,data: null == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
|
||||
as asar_api.RsiLauncherAsarData,serverData: null == serverData ? _self.serverData : serverData // ignore: cast_nullable_to_non_nullable
|
||||
as String,isPatchInstalled: null == isPatchInstalled ? _self.isPatchInstalled : isPatchInstalled // ignore: cast_nullable_to_non_nullable
|
||||
as bool,enabledLocalization: freezed == enabledLocalization ? _self.enabledLocalization : enabledLocalization // ignore: cast_nullable_to_non_nullable
|
||||
as String?,enableDownloaderBoost: freezed == enableDownloaderBoost ? _self.enableDownloaderBoost : enableDownloaderBoost // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// Adds pattern-matching-related methods to [RSILauncherStateData].
|
||||
extension RSILauncherStateDataPatterns on RSILauncherStateData {
|
||||
/// A variant of `map` that fallback to returning `orElse`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _RSILauncherStateData value)? $default,{required TResult orElse(),}){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _RSILauncherStateData() when $default != null:
|
||||
return $default(_that);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
}
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// Callbacks receives the raw object, upcasted.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case final Subclass2 value:
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _RSILauncherStateData value) $default,){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _RSILauncherStateData():
|
||||
return $default(_that);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `map` that fallback to returning `null`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _RSILauncherStateData value)? $default,){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _RSILauncherStateData() when $default != null:
|
||||
return $default(_that);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `when` that fallback to an `orElse` callback.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String version, asar_api.RsiLauncherAsarData data, String serverData, bool isPatchInstalled, String? enabledLocalization, bool? enableDownloaderBoost)? $default,{required TResult orElse(),}) {final _that = this;
|
||||
switch (_that) {
|
||||
case _RSILauncherStateData() when $default != null:
|
||||
return $default(_that.version,_that.data,_that.serverData,_that.isPatchInstalled,_that.enabledLocalization,_that.enableDownloaderBoost);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
}
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// As opposed to `map`, this offers destructuring.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case Subclass2(:final field2):
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String version, asar_api.RsiLauncherAsarData data, String serverData, bool isPatchInstalled, String? enabledLocalization, bool? enableDownloaderBoost) $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _RSILauncherStateData():
|
||||
return $default(_that.version,_that.data,_that.serverData,_that.isPatchInstalled,_that.enabledLocalization,_that.enableDownloaderBoost);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `when` that fallback to returning `null`
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String version, asar_api.RsiLauncherAsarData data, String serverData, bool isPatchInstalled, String? enabledLocalization, bool? enableDownloaderBoost)? $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _RSILauncherStateData() when $default != null:
|
||||
return $default(_that.version,_that.data,_that.serverData,_that.isPatchInstalled,_that.enabledLocalization,_that.enableDownloaderBoost);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
|
||||
class _RSILauncherStateData implements RSILauncherStateData {
|
||||
const _RSILauncherStateData(
|
||||
{required this.version,
|
||||
required this.data,
|
||||
required this.serverData,
|
||||
this.isPatchInstalled = false,
|
||||
this.enabledLocalization,
|
||||
this.enableDownloaderBoost});
|
||||
const _RSILauncherStateData({required this.version, required this.data, required this.serverData, this.isPatchInstalled = false, this.enabledLocalization, this.enableDownloaderBoost});
|
||||
|
||||
|
||||
@override
|
||||
final String version;
|
||||
@override
|
||||
final asar_api.RsiLauncherAsarData data;
|
||||
@override
|
||||
final String serverData;
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool isPatchInstalled;
|
||||
@override
|
||||
final String? enabledLocalization;
|
||||
@override
|
||||
final bool? enableDownloaderBoost;
|
||||
@override final String version;
|
||||
@override final asar_api.RsiLauncherAsarData data;
|
||||
@override final String serverData;
|
||||
@override@JsonKey() final bool isPatchInstalled;
|
||||
@override final String? enabledLocalization;
|
||||
@override final bool? enableDownloaderBoost;
|
||||
|
||||
/// Create a copy of RSILauncherStateData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$RSILauncherStateDataCopyWith<_RSILauncherStateData> get copyWith =>
|
||||
__$RSILauncherStateDataCopyWithImpl<_RSILauncherStateData>(
|
||||
this, _$identity);
|
||||
/// Create a copy of RSILauncherStateData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$RSILauncherStateDataCopyWith<_RSILauncherStateData> get copyWith => __$RSILauncherStateDataCopyWithImpl<_RSILauncherStateData>(this, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _RSILauncherStateData &&
|
||||
(identical(other.version, version) || other.version == version) &&
|
||||
(identical(other.data, data) || other.data == data) &&
|
||||
(identical(other.serverData, serverData) ||
|
||||
other.serverData == serverData) &&
|
||||
(identical(other.isPatchInstalled, isPatchInstalled) ||
|
||||
other.isPatchInstalled == isPatchInstalled) &&
|
||||
(identical(other.enabledLocalization, enabledLocalization) ||
|
||||
other.enabledLocalization == enabledLocalization) &&
|
||||
(identical(other.enableDownloaderBoost, enableDownloaderBoost) ||
|
||||
other.enableDownloaderBoost == enableDownloaderBoost));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, version, data, serverData,
|
||||
isPatchInstalled, enabledLocalization, enableDownloaderBoost);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'RSILauncherStateData(version: $version, data: $data, serverData: $serverData, isPatchInstalled: $isPatchInstalled, enabledLocalization: $enabledLocalization, enableDownloaderBoost: $enableDownloaderBoost)';
|
||||
}
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is _RSILauncherStateData&&(identical(other.version, version) || other.version == version)&&(identical(other.data, data) || other.data == data)&&(identical(other.serverData, serverData) || other.serverData == serverData)&&(identical(other.isPatchInstalled, isPatchInstalled) || other.isPatchInstalled == isPatchInstalled)&&(identical(other.enabledLocalization, enabledLocalization) || other.enabledLocalization == enabledLocalization)&&(identical(other.enableDownloaderBoost, enableDownloaderBoost) || other.enableDownloaderBoost == enableDownloaderBoost));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,version,data,serverData,isPatchInstalled,enabledLocalization,enableDownloaderBoost);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'RSILauncherStateData(version: $version, data: $data, serverData: $serverData, isPatchInstalled: $isPatchInstalled, enabledLocalization: $enabledLocalization, enableDownloaderBoost: $enableDownloaderBoost)';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$RSILauncherStateDataCopyWith<$Res>
|
||||
implements $RSILauncherStateDataCopyWith<$Res> {
|
||||
factory _$RSILauncherStateDataCopyWith(_RSILauncherStateData value,
|
||||
$Res Function(_RSILauncherStateData) _then) =
|
||||
__$RSILauncherStateDataCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{String version,
|
||||
asar_api.RsiLauncherAsarData data,
|
||||
String serverData,
|
||||
bool isPatchInstalled,
|
||||
String? enabledLocalization,
|
||||
bool? enableDownloaderBoost});
|
||||
}
|
||||
abstract mixin class _$RSILauncherStateDataCopyWith<$Res> implements $RSILauncherStateDataCopyWith<$Res> {
|
||||
factory _$RSILauncherStateDataCopyWith(_RSILauncherStateData value, $Res Function(_RSILauncherStateData) _then) = __$RSILauncherStateDataCopyWithImpl;
|
||||
@override @useResult
|
||||
$Res call({
|
||||
String version, asar_api.RsiLauncherAsarData data, String serverData, bool isPatchInstalled, String? enabledLocalization, bool? enableDownloaderBoost
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
/// @nodoc
|
||||
class __$RSILauncherStateDataCopyWithImpl<$Res>
|
||||
implements _$RSILauncherStateDataCopyWith<$Res> {
|
||||
@@ -207,45 +266,21 @@ class __$RSILauncherStateDataCopyWithImpl<$Res>
|
||||
final _RSILauncherStateData _self;
|
||||
final $Res Function(_RSILauncherStateData) _then;
|
||||
|
||||
/// Create a copy of RSILauncherStateData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$Res call({
|
||||
Object? version = null,
|
||||
Object? data = null,
|
||||
Object? serverData = null,
|
||||
Object? isPatchInstalled = null,
|
||||
Object? enabledLocalization = freezed,
|
||||
Object? enableDownloaderBoost = freezed,
|
||||
}) {
|
||||
return _then(_RSILauncherStateData(
|
||||
version: null == version
|
||||
? _self.version
|
||||
: version // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
data: null == data
|
||||
? _self.data
|
||||
: data // ignore: cast_nullable_to_non_nullable
|
||||
as asar_api.RsiLauncherAsarData,
|
||||
serverData: null == serverData
|
||||
? _self.serverData
|
||||
: serverData // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
isPatchInstalled: null == isPatchInstalled
|
||||
? _self.isPatchInstalled
|
||||
: isPatchInstalled // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
enabledLocalization: freezed == enabledLocalization
|
||||
? _self.enabledLocalization
|
||||
: enabledLocalization // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
enableDownloaderBoost: freezed == enableDownloaderBoost
|
||||
? _self.enableDownloaderBoost
|
||||
: enableDownloaderBoost // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
));
|
||||
}
|
||||
/// Create a copy of RSILauncherStateData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @pragma('vm:prefer-inline') $Res call({Object? version = null,Object? data = null,Object? serverData = null,Object? isPatchInstalled = null,Object? enabledLocalization = freezed,Object? enableDownloaderBoost = freezed,}) {
|
||||
return _then(_RSILauncherStateData(
|
||||
version: null == version ? _self.version : version // ignore: cast_nullable_to_non_nullable
|
||||
as String,data: null == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
|
||||
as asar_api.RsiLauncherAsarData,serverData: null == serverData ? _self.serverData : serverData // ignore: cast_nullable_to_non_nullable
|
||||
as String,isPatchInstalled: null == isPatchInstalled ? _self.isPatchInstalled : isPatchInstalled // ignore: cast_nullable_to_non_nullable
|
||||
as bool,enabledLocalization: freezed == enabledLocalization ? _self.enabledLocalization : enabledLocalization // ignore: cast_nullable_to_non_nullable
|
||||
as String?,enableDownloaderBoost: freezed == enableDownloaderBoost ? _self.enableDownloaderBoost : enableDownloaderBoost // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// dart format on
|
||||
|
@@ -1,6 +1,5 @@
|
||||
// dart format width=80
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// coverage:ignore-file
|
||||
// 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
|
||||
|
||||
@@ -12,52 +11,47 @@ part of 'log_analyze_provider.dart';
|
||||
|
||||
// dart format off
|
||||
T _$identity<T>(T value) => value;
|
||||
|
||||
/// @nodoc
|
||||
mixin _$LogAnalyzeLineData {
|
||||
String get type;
|
||||
String get title;
|
||||
String? get data;
|
||||
String? get dateTime;
|
||||
|
||||
/// Create a copy of LogAnalyzeLineData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
$LogAnalyzeLineDataCopyWith<LogAnalyzeLineData> get copyWith =>
|
||||
_$LogAnalyzeLineDataCopyWithImpl<LogAnalyzeLineData>(
|
||||
this as LogAnalyzeLineData, _$identity);
|
||||
String get type; String get title; String? get data; String? get dateTime;
|
||||
/// Create a copy of LogAnalyzeLineData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
$LogAnalyzeLineDataCopyWith<LogAnalyzeLineData> get copyWith => _$LogAnalyzeLineDataCopyWithImpl<LogAnalyzeLineData>(this as LogAnalyzeLineData, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is LogAnalyzeLineData &&
|
||||
(identical(other.type, type) || other.type == type) &&
|
||||
(identical(other.title, title) || other.title == title) &&
|
||||
(identical(other.data, data) || other.data == data) &&
|
||||
(identical(other.dateTime, dateTime) ||
|
||||
other.dateTime == dateTime));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, type, title, data, dateTime);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'LogAnalyzeLineData(type: $type, title: $title, data: $data, dateTime: $dateTime)';
|
||||
}
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is LogAnalyzeLineData&&(identical(other.type, type) || other.type == type)&&(identical(other.title, title) || other.title == title)&&(identical(other.data, data) || other.data == data)&&(identical(other.dateTime, dateTime) || other.dateTime == dateTime));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,type,title,data,dateTime);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'LogAnalyzeLineData(type: $type, title: $title, data: $data, dateTime: $dateTime)';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class $LogAnalyzeLineDataCopyWith<$Res> {
|
||||
factory $LogAnalyzeLineDataCopyWith(
|
||||
LogAnalyzeLineData value, $Res Function(LogAnalyzeLineData) _then) =
|
||||
_$LogAnalyzeLineDataCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({String type, String title, String? data, String? dateTime});
|
||||
}
|
||||
abstract mixin class $LogAnalyzeLineDataCopyWith<$Res> {
|
||||
factory $LogAnalyzeLineDataCopyWith(LogAnalyzeLineData value, $Res Function(LogAnalyzeLineData) _then) = _$LogAnalyzeLineDataCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({
|
||||
String type, String title, String? data, String? dateTime
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
/// @nodoc
|
||||
class _$LogAnalyzeLineDataCopyWithImpl<$Res>
|
||||
implements $LogAnalyzeLineDataCopyWith<$Res> {
|
||||
@@ -66,92 +60,200 @@ class _$LogAnalyzeLineDataCopyWithImpl<$Res>
|
||||
final LogAnalyzeLineData _self;
|
||||
final $Res Function(LogAnalyzeLineData) _then;
|
||||
|
||||
/// Create a copy of LogAnalyzeLineData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? type = null,
|
||||
Object? title = null,
|
||||
Object? data = freezed,
|
||||
Object? dateTime = freezed,
|
||||
}) {
|
||||
return _then(_self.copyWith(
|
||||
type: null == type
|
||||
? _self.type
|
||||
: type // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
title: null == title
|
||||
? _self.title
|
||||
: title // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
data: freezed == data
|
||||
? _self.data
|
||||
: data // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
dateTime: freezed == dateTime
|
||||
? _self.dateTime
|
||||
: dateTime // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
}
|
||||
/// Create a copy of LogAnalyzeLineData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline') @override $Res call({Object? type = null,Object? title = null,Object? data = freezed,Object? dateTime = freezed,}) {
|
||||
return _then(_self.copyWith(
|
||||
type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable
|
||||
as String,title: null == title ? _self.title : title // ignore: cast_nullable_to_non_nullable
|
||||
as String,data: freezed == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
|
||||
as String?,dateTime: freezed == dateTime ? _self.dateTime : dateTime // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// Adds pattern-matching-related methods to [LogAnalyzeLineData].
|
||||
extension LogAnalyzeLineDataPatterns on LogAnalyzeLineData {
|
||||
/// A variant of `map` that fallback to returning `orElse`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _LogAnalyzeLineData value)? $default,{required TResult orElse(),}){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _LogAnalyzeLineData() when $default != null:
|
||||
return $default(_that);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
}
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// Callbacks receives the raw object, upcasted.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case final Subclass2 value:
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _LogAnalyzeLineData value) $default,){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _LogAnalyzeLineData():
|
||||
return $default(_that);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `map` that fallback to returning `null`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _LogAnalyzeLineData value)? $default,){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _LogAnalyzeLineData() when $default != null:
|
||||
return $default(_that);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `when` that fallback to an `orElse` callback.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String type, String title, String? data, String? dateTime)? $default,{required TResult orElse(),}) {final _that = this;
|
||||
switch (_that) {
|
||||
case _LogAnalyzeLineData() when $default != null:
|
||||
return $default(_that.type,_that.title,_that.data,_that.dateTime);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
}
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// As opposed to `map`, this offers destructuring.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case Subclass2(:final field2):
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String type, String title, String? data, String? dateTime) $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _LogAnalyzeLineData():
|
||||
return $default(_that.type,_that.title,_that.data,_that.dateTime);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `when` that fallback to returning `null`
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String type, String title, String? data, String? dateTime)? $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _LogAnalyzeLineData() when $default != null:
|
||||
return $default(_that.type,_that.title,_that.data,_that.dateTime);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
|
||||
class _LogAnalyzeLineData implements LogAnalyzeLineData {
|
||||
const _LogAnalyzeLineData(
|
||||
{required this.type, required this.title, this.data, this.dateTime});
|
||||
const _LogAnalyzeLineData({required this.type, required this.title, this.data, this.dateTime});
|
||||
|
||||
|
||||
@override
|
||||
final String type;
|
||||
@override
|
||||
final String title;
|
||||
@override
|
||||
final String? data;
|
||||
@override
|
||||
final String? dateTime;
|
||||
@override final String type;
|
||||
@override final String title;
|
||||
@override final String? data;
|
||||
@override final String? dateTime;
|
||||
|
||||
/// Create a copy of LogAnalyzeLineData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$LogAnalyzeLineDataCopyWith<_LogAnalyzeLineData> get copyWith =>
|
||||
__$LogAnalyzeLineDataCopyWithImpl<_LogAnalyzeLineData>(this, _$identity);
|
||||
/// Create a copy of LogAnalyzeLineData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$LogAnalyzeLineDataCopyWith<_LogAnalyzeLineData> get copyWith => __$LogAnalyzeLineDataCopyWithImpl<_LogAnalyzeLineData>(this, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _LogAnalyzeLineData &&
|
||||
(identical(other.type, type) || other.type == type) &&
|
||||
(identical(other.title, title) || other.title == title) &&
|
||||
(identical(other.data, data) || other.data == data) &&
|
||||
(identical(other.dateTime, dateTime) ||
|
||||
other.dateTime == dateTime));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, type, title, data, dateTime);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'LogAnalyzeLineData(type: $type, title: $title, data: $data, dateTime: $dateTime)';
|
||||
}
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is _LogAnalyzeLineData&&(identical(other.type, type) || other.type == type)&&(identical(other.title, title) || other.title == title)&&(identical(other.data, data) || other.data == data)&&(identical(other.dateTime, dateTime) || other.dateTime == dateTime));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,type,title,data,dateTime);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'LogAnalyzeLineData(type: $type, title: $title, data: $data, dateTime: $dateTime)';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$LogAnalyzeLineDataCopyWith<$Res>
|
||||
implements $LogAnalyzeLineDataCopyWith<$Res> {
|
||||
factory _$LogAnalyzeLineDataCopyWith(
|
||||
_LogAnalyzeLineData value, $Res Function(_LogAnalyzeLineData) _then) =
|
||||
__$LogAnalyzeLineDataCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({String type, String title, String? data, String? dateTime});
|
||||
}
|
||||
abstract mixin class _$LogAnalyzeLineDataCopyWith<$Res> implements $LogAnalyzeLineDataCopyWith<$Res> {
|
||||
factory _$LogAnalyzeLineDataCopyWith(_LogAnalyzeLineData value, $Res Function(_LogAnalyzeLineData) _then) = __$LogAnalyzeLineDataCopyWithImpl;
|
||||
@override @useResult
|
||||
$Res call({
|
||||
String type, String title, String? data, String? dateTime
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
/// @nodoc
|
||||
class __$LogAnalyzeLineDataCopyWithImpl<$Res>
|
||||
implements _$LogAnalyzeLineDataCopyWith<$Res> {
|
||||
@@ -160,35 +262,19 @@ class __$LogAnalyzeLineDataCopyWithImpl<$Res>
|
||||
final _LogAnalyzeLineData _self;
|
||||
final $Res Function(_LogAnalyzeLineData) _then;
|
||||
|
||||
/// Create a copy of LogAnalyzeLineData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$Res call({
|
||||
Object? type = null,
|
||||
Object? title = null,
|
||||
Object? data = freezed,
|
||||
Object? dateTime = freezed,
|
||||
}) {
|
||||
return _then(_LogAnalyzeLineData(
|
||||
type: null == type
|
||||
? _self.type
|
||||
: type // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
title: null == title
|
||||
? _self.title
|
||||
: title // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
data: freezed == data
|
||||
? _self.data
|
||||
: data // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
dateTime: freezed == dateTime
|
||||
? _self.dateTime
|
||||
: dateTime // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
}
|
||||
/// Create a copy of LogAnalyzeLineData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @pragma('vm:prefer-inline') $Res call({Object? type = null,Object? title = null,Object? data = freezed,Object? dateTime = freezed,}) {
|
||||
return _then(_LogAnalyzeLineData(
|
||||
type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable
|
||||
as String,title: null == title ? _self.title : title // ignore: cast_nullable_to_non_nullable
|
||||
as String,data: freezed == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
|
||||
as String?,dateTime: freezed == dateTime ? _self.dateTime : dateTime // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// dart format on
|
||||
|
@@ -51,24 +51,15 @@ class ToolsLogAnalyzeFamily
|
||||
const ToolsLogAnalyzeFamily();
|
||||
|
||||
/// See also [ToolsLogAnalyze].
|
||||
ToolsLogAnalyzeProvider call(
|
||||
String gameInstallPath,
|
||||
bool listSortReverse,
|
||||
) {
|
||||
return ToolsLogAnalyzeProvider(
|
||||
gameInstallPath,
|
||||
listSortReverse,
|
||||
);
|
||||
ToolsLogAnalyzeProvider call(String gameInstallPath, bool listSortReverse) {
|
||||
return ToolsLogAnalyzeProvider(gameInstallPath, listSortReverse);
|
||||
}
|
||||
|
||||
@override
|
||||
ToolsLogAnalyzeProvider getProviderOverride(
|
||||
covariant ToolsLogAnalyzeProvider provider,
|
||||
) {
|
||||
return call(
|
||||
provider.gameInstallPath,
|
||||
provider.listSortReverse,
|
||||
);
|
||||
return call(provider.gameInstallPath, provider.listSortReverse);
|
||||
}
|
||||
|
||||
static const Iterable<ProviderOrFamily>? _dependencies = null;
|
||||
@@ -87,28 +78,29 @@ class ToolsLogAnalyzeFamily
|
||||
}
|
||||
|
||||
/// See also [ToolsLogAnalyze].
|
||||
class ToolsLogAnalyzeProvider extends AutoDisposeAsyncNotifierProviderImpl<
|
||||
ToolsLogAnalyze, List<LogAnalyzeLineData>> {
|
||||
class ToolsLogAnalyzeProvider
|
||||
extends
|
||||
AutoDisposeAsyncNotifierProviderImpl<
|
||||
ToolsLogAnalyze,
|
||||
List<LogAnalyzeLineData>
|
||||
> {
|
||||
/// See also [ToolsLogAnalyze].
|
||||
ToolsLogAnalyzeProvider(
|
||||
String gameInstallPath,
|
||||
bool listSortReverse,
|
||||
) : this._internal(
|
||||
() => ToolsLogAnalyze()
|
||||
..gameInstallPath = gameInstallPath
|
||||
..listSortReverse = listSortReverse,
|
||||
from: toolsLogAnalyzeProvider,
|
||||
name: r'toolsLogAnalyzeProvider',
|
||||
debugGetCreateSourceHash:
|
||||
const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$toolsLogAnalyzeHash,
|
||||
dependencies: ToolsLogAnalyzeFamily._dependencies,
|
||||
allTransitiveDependencies:
|
||||
ToolsLogAnalyzeFamily._allTransitiveDependencies,
|
||||
gameInstallPath: gameInstallPath,
|
||||
listSortReverse: listSortReverse,
|
||||
);
|
||||
ToolsLogAnalyzeProvider(String gameInstallPath, bool listSortReverse)
|
||||
: this._internal(
|
||||
() => ToolsLogAnalyze()
|
||||
..gameInstallPath = gameInstallPath
|
||||
..listSortReverse = listSortReverse,
|
||||
from: toolsLogAnalyzeProvider,
|
||||
name: r'toolsLogAnalyzeProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$toolsLogAnalyzeHash,
|
||||
dependencies: ToolsLogAnalyzeFamily._dependencies,
|
||||
allTransitiveDependencies:
|
||||
ToolsLogAnalyzeFamily._allTransitiveDependencies,
|
||||
gameInstallPath: gameInstallPath,
|
||||
listSortReverse: listSortReverse,
|
||||
);
|
||||
|
||||
ToolsLogAnalyzeProvider._internal(
|
||||
super._createNotifier, {
|
||||
@@ -128,10 +120,7 @@ class ToolsLogAnalyzeProvider extends AutoDisposeAsyncNotifierProviderImpl<
|
||||
FutureOr<List<LogAnalyzeLineData>> runNotifierBuild(
|
||||
covariant ToolsLogAnalyze notifier,
|
||||
) {
|
||||
return notifier.build(
|
||||
gameInstallPath,
|
||||
listSortReverse,
|
||||
);
|
||||
return notifier.build(gameInstallPath, listSortReverse);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -154,8 +143,11 @@ class ToolsLogAnalyzeProvider extends AutoDisposeAsyncNotifierProviderImpl<
|
||||
}
|
||||
|
||||
@override
|
||||
AutoDisposeAsyncNotifierProviderElement<ToolsLogAnalyze,
|
||||
List<LogAnalyzeLineData>> createElement() {
|
||||
AutoDisposeAsyncNotifierProviderElement<
|
||||
ToolsLogAnalyze,
|
||||
List<LogAnalyzeLineData>
|
||||
>
|
||||
createElement() {
|
||||
return _ToolsLogAnalyzeProviderElement(this);
|
||||
}
|
||||
|
||||
@@ -188,8 +180,12 @@ mixin ToolsLogAnalyzeRef
|
||||
}
|
||||
|
||||
class _ToolsLogAnalyzeProviderElement
|
||||
extends AutoDisposeAsyncNotifierProviderElement<ToolsLogAnalyze,
|
||||
List<LogAnalyzeLineData>> with ToolsLogAnalyzeRef {
|
||||
extends
|
||||
AutoDisposeAsyncNotifierProviderElement<
|
||||
ToolsLogAnalyze,
|
||||
List<LogAnalyzeLineData>
|
||||
>
|
||||
with ToolsLogAnalyzeRef {
|
||||
_ToolsLogAnalyzeProviderElement(super.provider);
|
||||
|
||||
@override
|
||||
@@ -199,5 +195,6 @@ class _ToolsLogAnalyzeProviderElement
|
||||
bool get listSortReverse =>
|
||||
(origin as ToolsLogAnalyzeProvider).listSortReverse;
|
||||
}
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
|
@@ -1,6 +1,5 @@
|
||||
// dart format width=80
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// coverage:ignore-file
|
||||
// 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
|
||||
|
||||
@@ -12,250 +11,273 @@ part of 'tools_ui_model.dart';
|
||||
|
||||
// dart format off
|
||||
T _$identity<T>(T value) => value;
|
||||
|
||||
/// @nodoc
|
||||
mixin _$ToolsUIState {
|
||||
bool get working;
|
||||
String get scInstalledPath;
|
||||
String get rsiLauncherInstalledPath;
|
||||
List<String> get scInstallPaths;
|
||||
List<String> get rsiLauncherInstallPaths;
|
||||
List<ToolsItemData> get items;
|
||||
bool get isItemLoading;
|
||||
|
||||
/// Create a copy of ToolsUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
$ToolsUIStateCopyWith<ToolsUIState> get copyWith =>
|
||||
_$ToolsUIStateCopyWithImpl<ToolsUIState>(
|
||||
this as ToolsUIState, _$identity);
|
||||
bool get working; String get scInstalledPath; String get rsiLauncherInstalledPath; List<String> get scInstallPaths; List<String> get rsiLauncherInstallPaths; List<ToolsItemData> get items; bool get isItemLoading;
|
||||
/// Create a copy of ToolsUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
$ToolsUIStateCopyWith<ToolsUIState> get copyWith => _$ToolsUIStateCopyWithImpl<ToolsUIState>(this as ToolsUIState, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is ToolsUIState &&
|
||||
(identical(other.working, working) || other.working == working) &&
|
||||
(identical(other.scInstalledPath, scInstalledPath) ||
|
||||
other.scInstalledPath == scInstalledPath) &&
|
||||
(identical(
|
||||
other.rsiLauncherInstalledPath, rsiLauncherInstalledPath) ||
|
||||
other.rsiLauncherInstalledPath == rsiLauncherInstalledPath) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other.scInstallPaths, scInstallPaths) &&
|
||||
const DeepCollectionEquality().equals(
|
||||
other.rsiLauncherInstallPaths, rsiLauncherInstallPaths) &&
|
||||
const DeepCollectionEquality().equals(other.items, items) &&
|
||||
(identical(other.isItemLoading, isItemLoading) ||
|
||||
other.isItemLoading == isItemLoading));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
working,
|
||||
scInstalledPath,
|
||||
rsiLauncherInstalledPath,
|
||||
const DeepCollectionEquality().hash(scInstallPaths),
|
||||
const DeepCollectionEquality().hash(rsiLauncherInstallPaths),
|
||||
const DeepCollectionEquality().hash(items),
|
||||
isItemLoading);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ToolsUIState(working: $working, scInstalledPath: $scInstalledPath, rsiLauncherInstalledPath: $rsiLauncherInstalledPath, scInstallPaths: $scInstallPaths, rsiLauncherInstallPaths: $rsiLauncherInstallPaths, items: $items, isItemLoading: $isItemLoading)';
|
||||
}
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is ToolsUIState&&(identical(other.working, working) || other.working == working)&&(identical(other.scInstalledPath, scInstalledPath) || other.scInstalledPath == scInstalledPath)&&(identical(other.rsiLauncherInstalledPath, rsiLauncherInstalledPath) || other.rsiLauncherInstalledPath == rsiLauncherInstalledPath)&&const DeepCollectionEquality().equals(other.scInstallPaths, scInstallPaths)&&const DeepCollectionEquality().equals(other.rsiLauncherInstallPaths, rsiLauncherInstallPaths)&&const DeepCollectionEquality().equals(other.items, items)&&(identical(other.isItemLoading, isItemLoading) || other.isItemLoading == isItemLoading));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,working,scInstalledPath,rsiLauncherInstalledPath,const DeepCollectionEquality().hash(scInstallPaths),const DeepCollectionEquality().hash(rsiLauncherInstallPaths),const DeepCollectionEquality().hash(items),isItemLoading);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ToolsUIState(working: $working, scInstalledPath: $scInstalledPath, rsiLauncherInstalledPath: $rsiLauncherInstalledPath, scInstallPaths: $scInstallPaths, rsiLauncherInstallPaths: $rsiLauncherInstallPaths, items: $items, isItemLoading: $isItemLoading)';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class $ToolsUIStateCopyWith<$Res> {
|
||||
factory $ToolsUIStateCopyWith(
|
||||
ToolsUIState value, $Res Function(ToolsUIState) _then) =
|
||||
_$ToolsUIStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool working,
|
||||
String scInstalledPath,
|
||||
String rsiLauncherInstalledPath,
|
||||
List<String> scInstallPaths,
|
||||
List<String> rsiLauncherInstallPaths,
|
||||
List<ToolsItemData> items,
|
||||
bool isItemLoading});
|
||||
}
|
||||
abstract mixin class $ToolsUIStateCopyWith<$Res> {
|
||||
factory $ToolsUIStateCopyWith(ToolsUIState value, $Res Function(ToolsUIState) _then) = _$ToolsUIStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({
|
||||
bool working, String scInstalledPath, String rsiLauncherInstalledPath, List<String> scInstallPaths, List<String> rsiLauncherInstallPaths, List<ToolsItemData> items, bool isItemLoading
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
/// @nodoc
|
||||
class _$ToolsUIStateCopyWithImpl<$Res> implements $ToolsUIStateCopyWith<$Res> {
|
||||
class _$ToolsUIStateCopyWithImpl<$Res>
|
||||
implements $ToolsUIStateCopyWith<$Res> {
|
||||
_$ToolsUIStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final ToolsUIState _self;
|
||||
final $Res Function(ToolsUIState) _then;
|
||||
|
||||
/// Create a copy of ToolsUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? working = null,
|
||||
Object? scInstalledPath = null,
|
||||
Object? rsiLauncherInstalledPath = null,
|
||||
Object? scInstallPaths = null,
|
||||
Object? rsiLauncherInstallPaths = null,
|
||||
Object? items = null,
|
||||
Object? isItemLoading = null,
|
||||
}) {
|
||||
return _then(_self.copyWith(
|
||||
working: null == working
|
||||
? _self.working
|
||||
: working // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
scInstalledPath: null == scInstalledPath
|
||||
? _self.scInstalledPath
|
||||
: scInstalledPath // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
rsiLauncherInstalledPath: null == rsiLauncherInstalledPath
|
||||
? _self.rsiLauncherInstalledPath
|
||||
: rsiLauncherInstalledPath // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
scInstallPaths: null == scInstallPaths
|
||||
? _self.scInstallPaths
|
||||
: scInstallPaths // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
rsiLauncherInstallPaths: null == rsiLauncherInstallPaths
|
||||
? _self.rsiLauncherInstallPaths
|
||||
: rsiLauncherInstallPaths // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
items: null == items
|
||||
? _self.items
|
||||
: items // ignore: cast_nullable_to_non_nullable
|
||||
as List<ToolsItemData>,
|
||||
isItemLoading: null == isItemLoading
|
||||
? _self.isItemLoading
|
||||
: isItemLoading // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
));
|
||||
}
|
||||
/// Create a copy of ToolsUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline') @override $Res call({Object? working = null,Object? scInstalledPath = null,Object? rsiLauncherInstalledPath = null,Object? scInstallPaths = null,Object? rsiLauncherInstallPaths = null,Object? items = null,Object? isItemLoading = null,}) {
|
||||
return _then(_self.copyWith(
|
||||
working: null == working ? _self.working : working // ignore: cast_nullable_to_non_nullable
|
||||
as bool,scInstalledPath: null == scInstalledPath ? _self.scInstalledPath : scInstalledPath // ignore: cast_nullable_to_non_nullable
|
||||
as String,rsiLauncherInstalledPath: null == rsiLauncherInstalledPath ? _self.rsiLauncherInstalledPath : rsiLauncherInstalledPath // ignore: cast_nullable_to_non_nullable
|
||||
as String,scInstallPaths: null == scInstallPaths ? _self.scInstallPaths : scInstallPaths // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,rsiLauncherInstallPaths: null == rsiLauncherInstallPaths ? _self.rsiLauncherInstallPaths : rsiLauncherInstallPaths // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,items: null == items ? _self.items : items // ignore: cast_nullable_to_non_nullable
|
||||
as List<ToolsItemData>,isItemLoading: null == isItemLoading ? _self.isItemLoading : isItemLoading // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// Adds pattern-matching-related methods to [ToolsUIState].
|
||||
extension ToolsUIStatePatterns on ToolsUIState {
|
||||
/// A variant of `map` that fallback to returning `orElse`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _ToolsUIState value)? $default,{required TResult orElse(),}){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ToolsUIState() when $default != null:
|
||||
return $default(_that);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
}
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// Callbacks receives the raw object, upcasted.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case final Subclass2 value:
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _ToolsUIState value) $default,){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ToolsUIState():
|
||||
return $default(_that);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `map` that fallback to returning `null`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _ToolsUIState value)? $default,){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ToolsUIState() when $default != null:
|
||||
return $default(_that);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `when` that fallback to an `orElse` callback.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( bool working, String scInstalledPath, String rsiLauncherInstalledPath, List<String> scInstallPaths, List<String> rsiLauncherInstallPaths, List<ToolsItemData> items, bool isItemLoading)? $default,{required TResult orElse(),}) {final _that = this;
|
||||
switch (_that) {
|
||||
case _ToolsUIState() when $default != null:
|
||||
return $default(_that.working,_that.scInstalledPath,_that.rsiLauncherInstalledPath,_that.scInstallPaths,_that.rsiLauncherInstallPaths,_that.items,_that.isItemLoading);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
}
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// As opposed to `map`, this offers destructuring.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case Subclass2(:final field2):
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( bool working, String scInstalledPath, String rsiLauncherInstalledPath, List<String> scInstallPaths, List<String> rsiLauncherInstallPaths, List<ToolsItemData> items, bool isItemLoading) $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _ToolsUIState():
|
||||
return $default(_that.working,_that.scInstalledPath,_that.rsiLauncherInstalledPath,_that.scInstallPaths,_that.rsiLauncherInstallPaths,_that.items,_that.isItemLoading);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `when` that fallback to returning `null`
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( bool working, String scInstalledPath, String rsiLauncherInstalledPath, List<String> scInstallPaths, List<String> rsiLauncherInstallPaths, List<ToolsItemData> items, bool isItemLoading)? $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _ToolsUIState() when $default != null:
|
||||
return $default(_that.working,_that.scInstalledPath,_that.rsiLauncherInstalledPath,_that.scInstallPaths,_that.rsiLauncherInstallPaths,_that.items,_that.isItemLoading);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
|
||||
class _ToolsUIState implements ToolsUIState {
|
||||
_ToolsUIState(
|
||||
{this.working = false,
|
||||
this.scInstalledPath = "",
|
||||
this.rsiLauncherInstalledPath = "",
|
||||
final List<String> scInstallPaths = const [],
|
||||
final List<String> rsiLauncherInstallPaths = const [],
|
||||
final List<ToolsItemData> items = const [],
|
||||
this.isItemLoading = false})
|
||||
: _scInstallPaths = scInstallPaths,
|
||||
_rsiLauncherInstallPaths = rsiLauncherInstallPaths,
|
||||
_items = items;
|
||||
_ToolsUIState({this.working = false, this.scInstalledPath = "", this.rsiLauncherInstalledPath = "", final List<String> scInstallPaths = const [], final List<String> rsiLauncherInstallPaths = const [], final List<ToolsItemData> items = const [], this.isItemLoading = false}): _scInstallPaths = scInstallPaths,_rsiLauncherInstallPaths = rsiLauncherInstallPaths,_items = items;
|
||||
|
||||
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool working;
|
||||
@override
|
||||
@JsonKey()
|
||||
final String scInstalledPath;
|
||||
@override
|
||||
@JsonKey()
|
||||
final String rsiLauncherInstalledPath;
|
||||
final List<String> _scInstallPaths;
|
||||
@override
|
||||
@JsonKey()
|
||||
List<String> get scInstallPaths {
|
||||
if (_scInstallPaths is EqualUnmodifiableListView) return _scInstallPaths;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_scInstallPaths);
|
||||
}
|
||||
@override@JsonKey() final bool working;
|
||||
@override@JsonKey() final String scInstalledPath;
|
||||
@override@JsonKey() final String rsiLauncherInstalledPath;
|
||||
final List<String> _scInstallPaths;
|
||||
@override@JsonKey() List<String> get scInstallPaths {
|
||||
if (_scInstallPaths is EqualUnmodifiableListView) return _scInstallPaths;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_scInstallPaths);
|
||||
}
|
||||
|
||||
final List<String> _rsiLauncherInstallPaths;
|
||||
@override
|
||||
@JsonKey()
|
||||
List<String> get rsiLauncherInstallPaths {
|
||||
if (_rsiLauncherInstallPaths is EqualUnmodifiableListView)
|
||||
return _rsiLauncherInstallPaths;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_rsiLauncherInstallPaths);
|
||||
}
|
||||
final List<String> _rsiLauncherInstallPaths;
|
||||
@override@JsonKey() List<String> get rsiLauncherInstallPaths {
|
||||
if (_rsiLauncherInstallPaths is EqualUnmodifiableListView) return _rsiLauncherInstallPaths;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_rsiLauncherInstallPaths);
|
||||
}
|
||||
|
||||
final List<ToolsItemData> _items;
|
||||
@override
|
||||
@JsonKey()
|
||||
List<ToolsItemData> get items {
|
||||
if (_items is EqualUnmodifiableListView) return _items;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_items);
|
||||
}
|
||||
final List<ToolsItemData> _items;
|
||||
@override@JsonKey() List<ToolsItemData> get items {
|
||||
if (_items is EqualUnmodifiableListView) return _items;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_items);
|
||||
}
|
||||
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool isItemLoading;
|
||||
@override@JsonKey() final bool isItemLoading;
|
||||
|
||||
/// Create a copy of ToolsUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$ToolsUIStateCopyWith<_ToolsUIState> get copyWith =>
|
||||
__$ToolsUIStateCopyWithImpl<_ToolsUIState>(this, _$identity);
|
||||
/// Create a copy of ToolsUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$ToolsUIStateCopyWith<_ToolsUIState> get copyWith => __$ToolsUIStateCopyWithImpl<_ToolsUIState>(this, _$identity);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _ToolsUIState &&
|
||||
(identical(other.working, working) || other.working == working) &&
|
||||
(identical(other.scInstalledPath, scInstalledPath) ||
|
||||
other.scInstalledPath == scInstalledPath) &&
|
||||
(identical(
|
||||
other.rsiLauncherInstalledPath, rsiLauncherInstalledPath) ||
|
||||
other.rsiLauncherInstalledPath == rsiLauncherInstalledPath) &&
|
||||
const DeepCollectionEquality()
|
||||
.equals(other._scInstallPaths, _scInstallPaths) &&
|
||||
const DeepCollectionEquality().equals(
|
||||
other._rsiLauncherInstallPaths, _rsiLauncherInstallPaths) &&
|
||||
const DeepCollectionEquality().equals(other._items, _items) &&
|
||||
(identical(other.isItemLoading, isItemLoading) ||
|
||||
other.isItemLoading == isItemLoading));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
working,
|
||||
scInstalledPath,
|
||||
rsiLauncherInstalledPath,
|
||||
const DeepCollectionEquality().hash(_scInstallPaths),
|
||||
const DeepCollectionEquality().hash(_rsiLauncherInstallPaths),
|
||||
const DeepCollectionEquality().hash(_items),
|
||||
isItemLoading);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ToolsUIState(working: $working, scInstalledPath: $scInstalledPath, rsiLauncherInstalledPath: $rsiLauncherInstalledPath, scInstallPaths: $scInstallPaths, rsiLauncherInstallPaths: $rsiLauncherInstallPaths, items: $items, isItemLoading: $isItemLoading)';
|
||||
}
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is _ToolsUIState&&(identical(other.working, working) || other.working == working)&&(identical(other.scInstalledPath, scInstalledPath) || other.scInstalledPath == scInstalledPath)&&(identical(other.rsiLauncherInstalledPath, rsiLauncherInstalledPath) || other.rsiLauncherInstalledPath == rsiLauncherInstalledPath)&&const DeepCollectionEquality().equals(other._scInstallPaths, _scInstallPaths)&&const DeepCollectionEquality().equals(other._rsiLauncherInstallPaths, _rsiLauncherInstallPaths)&&const DeepCollectionEquality().equals(other._items, _items)&&(identical(other.isItemLoading, isItemLoading) || other.isItemLoading == isItemLoading));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,working,scInstalledPath,rsiLauncherInstalledPath,const DeepCollectionEquality().hash(_scInstallPaths),const DeepCollectionEquality().hash(_rsiLauncherInstallPaths),const DeepCollectionEquality().hash(_items),isItemLoading);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ToolsUIState(working: $working, scInstalledPath: $scInstalledPath, rsiLauncherInstalledPath: $rsiLauncherInstalledPath, scInstallPaths: $scInstallPaths, rsiLauncherInstallPaths: $rsiLauncherInstallPaths, items: $items, isItemLoading: $isItemLoading)';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$ToolsUIStateCopyWith<$Res>
|
||||
implements $ToolsUIStateCopyWith<$Res> {
|
||||
factory _$ToolsUIStateCopyWith(
|
||||
_ToolsUIState value, $Res Function(_ToolsUIState) _then) =
|
||||
__$ToolsUIStateCopyWithImpl;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool working,
|
||||
String scInstalledPath,
|
||||
String rsiLauncherInstalledPath,
|
||||
List<String> scInstallPaths,
|
||||
List<String> rsiLauncherInstallPaths,
|
||||
List<ToolsItemData> items,
|
||||
bool isItemLoading});
|
||||
}
|
||||
abstract mixin class _$ToolsUIStateCopyWith<$Res> implements $ToolsUIStateCopyWith<$Res> {
|
||||
factory _$ToolsUIStateCopyWith(_ToolsUIState value, $Res Function(_ToolsUIState) _then) = __$ToolsUIStateCopyWithImpl;
|
||||
@override @useResult
|
||||
$Res call({
|
||||
bool working, String scInstalledPath, String rsiLauncherInstalledPath, List<String> scInstallPaths, List<String> rsiLauncherInstallPaths, List<ToolsItemData> items, bool isItemLoading
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
/// @nodoc
|
||||
class __$ToolsUIStateCopyWithImpl<$Res>
|
||||
implements _$ToolsUIStateCopyWith<$Res> {
|
||||
@@ -264,50 +286,22 @@ class __$ToolsUIStateCopyWithImpl<$Res>
|
||||
final _ToolsUIState _self;
|
||||
final $Res Function(_ToolsUIState) _then;
|
||||
|
||||
/// Create a copy of ToolsUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$Res call({
|
||||
Object? working = null,
|
||||
Object? scInstalledPath = null,
|
||||
Object? rsiLauncherInstalledPath = null,
|
||||
Object? scInstallPaths = null,
|
||||
Object? rsiLauncherInstallPaths = null,
|
||||
Object? items = null,
|
||||
Object? isItemLoading = null,
|
||||
}) {
|
||||
return _then(_ToolsUIState(
|
||||
working: null == working
|
||||
? _self.working
|
||||
: working // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
scInstalledPath: null == scInstalledPath
|
||||
? _self.scInstalledPath
|
||||
: scInstalledPath // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
rsiLauncherInstalledPath: null == rsiLauncherInstalledPath
|
||||
? _self.rsiLauncherInstalledPath
|
||||
: rsiLauncherInstalledPath // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
scInstallPaths: null == scInstallPaths
|
||||
? _self._scInstallPaths
|
||||
: scInstallPaths // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
rsiLauncherInstallPaths: null == rsiLauncherInstallPaths
|
||||
? _self._rsiLauncherInstallPaths
|
||||
: rsiLauncherInstallPaths // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
items: null == items
|
||||
? _self._items
|
||||
: items // ignore: cast_nullable_to_non_nullable
|
||||
as List<ToolsItemData>,
|
||||
isItemLoading: null == isItemLoading
|
||||
? _self.isItemLoading
|
||||
: isItemLoading // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
));
|
||||
}
|
||||
/// Create a copy of ToolsUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @pragma('vm:prefer-inline') $Res call({Object? working = null,Object? scInstalledPath = null,Object? rsiLauncherInstalledPath = null,Object? scInstallPaths = null,Object? rsiLauncherInstallPaths = null,Object? items = null,Object? isItemLoading = null,}) {
|
||||
return _then(_ToolsUIState(
|
||||
working: null == working ? _self.working : working // ignore: cast_nullable_to_non_nullable
|
||||
as bool,scInstalledPath: null == scInstalledPath ? _self.scInstalledPath : scInstalledPath // ignore: cast_nullable_to_non_nullable
|
||||
as String,rsiLauncherInstalledPath: null == rsiLauncherInstalledPath ? _self.rsiLauncherInstalledPath : rsiLauncherInstalledPath // ignore: cast_nullable_to_non_nullable
|
||||
as String,scInstallPaths: null == scInstallPaths ? _self._scInstallPaths : scInstallPaths // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,rsiLauncherInstallPaths: null == rsiLauncherInstallPaths ? _self._rsiLauncherInstallPaths : rsiLauncherInstallPaths // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,items: null == items ? _self._items : items // ignore: cast_nullable_to_non_nullable
|
||||
as List<ToolsItemData>,isItemLoading: null == isItemLoading ? _self.isItemLoading : isItemLoading // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// dart format on
|
||||
|
@@ -12,13 +12,14 @@ String _$toolsUIModelHash() => r'c8830e26df6c0ee572dd5e78c4ccef3317f8b4e6';
|
||||
@ProviderFor(ToolsUIModel)
|
||||
final toolsUIModelProvider =
|
||||
AutoDisposeNotifierProvider<ToolsUIModel, ToolsUIState>.internal(
|
||||
ToolsUIModel.new,
|
||||
name: r'toolsUIModelProvider',
|
||||
debugGetCreateSourceHash:
|
||||
const bool.fromEnvironment('dart.vm.product') ? null : _$toolsUIModelHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
ToolsUIModel.new,
|
||||
name: r'toolsUIModelProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$toolsUIModelHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$ToolsUIModel = AutoDisposeNotifier<ToolsUIState>;
|
||||
// ignore_for_file: type=lint
|
||||
|
Reference in New Issue
Block a user