mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 10:14:45 +08:00
bump: Flutter 3.32.1 Rust 1.87.0
fix: rsi launcher patch 2.4.0
This commit is contained in:
@ -21,7 +21,7 @@ import 'package:starcitizen_doctor/widgets/widgets.dart';
|
||||
part 'rsi_launcher_enhance_dialog_ui.freezed.dart';
|
||||
|
||||
@freezed
|
||||
class RSILauncherStateData with _$RSILauncherStateData {
|
||||
abstract class RSILauncherStateData with _$RSILauncherStateData {
|
||||
const factory RSILauncherStateData({
|
||||
required String version,
|
||||
required asar_api.RsiLauncherAsarData data,
|
||||
@ -35,8 +35,7 @@ class RSILauncherStateData with _$RSILauncherStateData {
|
||||
class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
final bool showNotGameInstallMsg;
|
||||
|
||||
const RsiLauncherEnhanceDialogUI(
|
||||
{super.key, this.showNotGameInstallMsg = false});
|
||||
const RsiLauncherEnhanceDialogUI({super.key, this.showNotGameInstallMsg = false});
|
||||
|
||||
static const supportLocalizationMap = {
|
||||
"en": NoL10n.langEn,
|
||||
@ -62,30 +61,25 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
}
|
||||
workingText.value = S.current.tools_rsi_launcher_enhance_init_msg2;
|
||||
if (!context.mounted) return;
|
||||
await _loadEnhanceData(context, ref, assarState)
|
||||
.unwrap(context: context)
|
||||
.unwrap(context: context);
|
||||
await _loadEnhanceData(context, ref, assarState).unwrap(context: context).unwrap(context: context);
|
||||
workingText.value = "";
|
||||
}
|
||||
|
||||
void doInstall() async {
|
||||
if (!context.mounted) return;
|
||||
workingText.value = S.current.tools_rsi_launcher_enhance_working_msg1;
|
||||
if ((await SystemHelper.getPID("\"RSI Launcher\"")).isNotEmpty) {
|
||||
if (!context.mounted) return;
|
||||
showToast(
|
||||
context, S.current.tools_action_info_rsi_launcher_running_warning,
|
||||
constraints: BoxConstraints(
|
||||
maxWidth: MediaQuery.of(context).size.width * .35));
|
||||
showToast(context, S.current.tools_action_info_rsi_launcher_running_warning,
|
||||
constraints: BoxConstraints(maxWidth: MediaQuery.of(context).size.width * .35));
|
||||
workingText.value = "";
|
||||
return;
|
||||
}
|
||||
if (!context.mounted) return;
|
||||
workingText.value = S.current.tools_rsi_launcher_enhance_working_msg1;
|
||||
final newScript =
|
||||
await _genNewScript(assarState).unwrap(context: context);
|
||||
final newScript = await _genNewScript(assarState).unwrap(context: context);
|
||||
workingText.value = S.current.tools_rsi_launcher_enhance_working_msg2;
|
||||
if (!context.mounted) return;
|
||||
await assarState.value?.data
|
||||
.writeMainJs(content: utf8.encode(newScript))
|
||||
.unwrap(context: context);
|
||||
await assarState.value?.data.writeMainJs(content: utf8.encode(newScript)).unwrap(context: context);
|
||||
AnalyticsApi.touch("rsi_launcher_mod_apply");
|
||||
await readState();
|
||||
}
|
||||
@ -97,16 +91,14 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
}, const []);
|
||||
|
||||
return ContentDialog(
|
||||
constraints:
|
||||
BoxConstraints(maxWidth: MediaQuery.of(context).size.width * .48),
|
||||
constraints: BoxConstraints(maxWidth: MediaQuery.of(context).size.width * .48),
|
||||
title: Row(children: [
|
||||
IconButton(
|
||||
icon: const Icon(
|
||||
FluentIcons.back,
|
||||
size: 22,
|
||||
),
|
||||
onPressed:
|
||||
workingText.value.isEmpty ? Navigator.of(context).pop : null),
|
||||
onPressed: workingText.value.isEmpty ? Navigator.of(context).pop : null),
|
||||
const SizedBox(width: 12),
|
||||
Text(S.current.tools_rsi_launcher_enhance_title),
|
||||
]),
|
||||
@ -119,8 +111,7 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
if (showNotGameInstallMsg) ...[
|
||||
InfoBar(
|
||||
title: const SizedBox(),
|
||||
content: Text(S.current
|
||||
.home_localization_action_rsi_launcher_no_game_path_msg),
|
||||
content: Text(S.current.home_localization_action_rsi_launcher_no_game_path_msg),
|
||||
style: InfoBarThemeData(decoration: (severity) {
|
||||
return BoxDecoration(
|
||||
color: Colors.orange,
|
||||
@ -152,18 +143,16 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
S.current.tools_rsi_launcher_enhance_msg_version(
|
||||
assarState.value?.version ?? ""),
|
||||
S.current.tools_rsi_launcher_enhance_msg_version(assarState.value?.version ?? ""),
|
||||
style: TextStyle(
|
||||
color: Colors.white.withValues(alpha: .6),
|
||||
),
|
||||
),
|
||||
),
|
||||
Text(
|
||||
S.current.tools_rsi_launcher_enhance_msg_patch_status(
|
||||
(assarState.value?.isPatchInstalled ?? false)
|
||||
? S.current.localization_info_installed
|
||||
: S.current.tools_action_info_not_installed),
|
||||
S.current.tools_rsi_launcher_enhance_msg_patch_status((assarState.value?.isPatchInstalled ?? false)
|
||||
? S.current.localization_info_installed
|
||||
: S.current.tools_action_info_not_installed),
|
||||
style: TextStyle(
|
||||
color: Colors.white.withValues(alpha: .6),
|
||||
),
|
||||
@ -188,12 +177,10 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(S.current
|
||||
.tools_rsi_launcher_enhance_title_localization),
|
||||
Text(S.current.tools_rsi_launcher_enhance_title_localization),
|
||||
const SizedBox(height: 3),
|
||||
Text(
|
||||
S.current
|
||||
.tools_rsi_launcher_enhance_subtitle_localization,
|
||||
S.current.tools_rsi_launcher_enhance_subtitle_localization,
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
color: Colors.white.withValues(alpha: .6),
|
||||
@ -204,14 +191,11 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
ComboBox(
|
||||
items: [
|
||||
for (final key in supportLocalizationMap.keys)
|
||||
ComboBoxItem(
|
||||
value: key,
|
||||
child: Text(supportLocalizationMap[key]!))
|
||||
ComboBoxItem(value: key, child: Text(supportLocalizationMap[key]!))
|
||||
],
|
||||
value: assarState.value?.enabledLocalization,
|
||||
onChanged: (v) {
|
||||
assarState.value = assarState.value!
|
||||
.copyWith(enabledLocalization: v);
|
||||
assarState.value = assarState.value!.copyWith(enabledLocalization: v);
|
||||
},
|
||||
),
|
||||
],
|
||||
@ -228,15 +212,11 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(expandEnhance.value
|
||||
? FluentIcons.chevron_up
|
||||
: FluentIcons.chevron_down),
|
||||
Icon(expandEnhance.value ? FluentIcons.chevron_up : FluentIcons.chevron_down),
|
||||
const SizedBox(width: 12),
|
||||
Text(expandEnhance.value
|
||||
? S.current
|
||||
.tools_rsi_launcher_enhance_action_fold
|
||||
: S.current
|
||||
.tools_rsi_launcher_enhance_action_expand),
|
||||
? S.current.tools_rsi_launcher_enhance_action_fold
|
||||
: S.current.tools_rsi_launcher_enhance_action_expand),
|
||||
],
|
||||
))),
|
||||
],
|
||||
@ -250,13 +230,10 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(S.current
|
||||
.tools_rsi_launcher_enhance_note_msg),
|
||||
Text(S.current.tools_rsi_launcher_enhance_note_msg),
|
||||
],
|
||||
),
|
||||
constraints: BoxConstraints(
|
||||
maxWidth:
|
||||
MediaQuery.of(context).size.width * .55));
|
||||
constraints: BoxConstraints(maxWidth: MediaQuery.of(context).size.width * .55));
|
||||
if (!userOK) return;
|
||||
}
|
||||
expandEnhance.value = !expandEnhance.value;
|
||||
@ -275,12 +252,10 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(S.current
|
||||
.tools_rsi_launcher_enhance_title_download_booster),
|
||||
Text(S.current.tools_rsi_launcher_enhance_title_download_booster),
|
||||
const SizedBox(height: 3),
|
||||
Text(
|
||||
S.current
|
||||
.tools_rsi_launcher_enhance_subtitle_download_booster,
|
||||
S.current.tools_rsi_launcher_enhance_subtitle_download_booster,
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
color: Colors.white.withValues(alpha: .6),
|
||||
@ -290,11 +265,9 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
)),
|
||||
ToggleSwitch(
|
||||
onChanged: (value) {
|
||||
assarState.value = assarState.value
|
||||
?.copyWith(enableDownloaderBoost: value);
|
||||
assarState.value = assarState.value?.copyWith(enableDownloaderBoost: value);
|
||||
},
|
||||
checked: assarState.value?.enableDownloaderBoost ??
|
||||
false,
|
||||
checked: assarState.value?.enableDownloaderBoost ?? false,
|
||||
)
|
||||
])),
|
||||
],
|
||||
@ -303,17 +276,14 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
child: FilledButton(
|
||||
onPressed: doInstall,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
vertical: 4, horizontal: 6),
|
||||
child: Text(S.current
|
||||
.tools_rsi_launcher_enhance_action_install),
|
||||
padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 6),
|
||||
child: Text(S.current.tools_rsi_launcher_enhance_action_install),
|
||||
))),
|
||||
],
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
S.current.tools_rsi_launcher_enhance_msg_uninstall,
|
||||
style: TextStyle(
|
||||
color: Colors.white.withValues(alpha: .6), fontSize: 13),
|
||||
style: TextStyle(color: Colors.white.withValues(alpha: .6), fontSize: 13),
|
||||
),
|
||||
],
|
||||
],
|
||||
@ -326,8 +296,7 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
final lPath = await SystemHelper.getRSILauncherPath(skipEXE: true);
|
||||
if (lPath.isEmpty) {
|
||||
if (!context.mounted) return null;
|
||||
showToast(context,
|
||||
S.current.tools_rsi_launcher_enhance_msg_error_launcher_notfound);
|
||||
showToast(context, S.current.tools_rsi_launcher_enhance_msg_error_launcher_notfound);
|
||||
return null;
|
||||
}
|
||||
dPrint("[RsiLauncherEnhanceDialogUI] rsiLauncherPath ==== $lPath");
|
||||
@ -335,25 +304,18 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
dPrint("[RsiLauncherEnhanceDialogUI] rsiLauncherDataPath ==== $dataPath");
|
||||
try {
|
||||
final data = await asar_api.getRsiLauncherAsarData(asarPath: dataPath);
|
||||
dPrint(
|
||||
"[RsiLauncherEnhanceDialogUI] rsiLauncherPath main.js path == ${data.mainJsPath}");
|
||||
final version =
|
||||
RegExp(r"main\.(\w+)\.js").firstMatch(data.mainJsPath)?.group(1);
|
||||
dPrint("[RsiLauncherEnhanceDialogUI] rsiLauncherPath main.js path == ${data.mainJsPath}");
|
||||
final version = RegExp(r"main\.(\w+)\.js").firstMatch(data.mainJsPath)?.group(1);
|
||||
if (version == null) {
|
||||
if (!context.mounted) return null;
|
||||
showToast(
|
||||
context,
|
||||
S.current
|
||||
.tools_rsi_launcher_enhance_msg_error_get_launcher_info_error);
|
||||
showToast(context, S.current.tools_rsi_launcher_enhance_msg_error_get_launcher_info_error);
|
||||
return null;
|
||||
}
|
||||
dPrint(
|
||||
"[RsiLauncherEnhanceDialogUI] rsiLauncherPath main.js version == $version");
|
||||
dPrint("[RsiLauncherEnhanceDialogUI] rsiLauncherPath main.js version == $version");
|
||||
|
||||
final mainJsString = String.fromCharCodes(data.mainJsContent);
|
||||
|
||||
final (enabledLocalization, enableDownloaderBoost) =
|
||||
_readScriptState(mainJsString);
|
||||
final (enabledLocalization, enableDownloaderBoost) = _readScriptState(mainJsString);
|
||||
|
||||
return RSILauncherStateData(
|
||||
version: version,
|
||||
@ -365,25 +327,26 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
);
|
||||
} catch (e) {
|
||||
if (!context.mounted) return null;
|
||||
showToast(
|
||||
context,
|
||||
S.current
|
||||
.tools_rsi_launcher_enhance_msg_error_get_launcher_info_error_with_args(
|
||||
e));
|
||||
showToast(context, S.current.tools_rsi_launcher_enhance_msg_error_get_launcher_info_error_with_args(e));
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Future<String> _loadEnhanceData(BuildContext context, WidgetRef ref,
|
||||
ValueNotifier<RSILauncherStateData?> assarState) async {
|
||||
Future<String> _loadEnhanceData(
|
||||
BuildContext context, WidgetRef ref, ValueNotifier<RSILauncherStateData?> assarState) async {
|
||||
final globalModel = ref.read(appGlobalModelProvider);
|
||||
final enhancePath =
|
||||
"${globalModel.applicationSupportDir}/launcher_enhance_data";
|
||||
final enhanceFile =
|
||||
File("$enhancePath/${assarState.value?.version}.tar.gz");
|
||||
final enhancePath = "${globalModel.applicationSupportDir}/launcher_enhance_data";
|
||||
|
||||
/// For debug
|
||||
final debugFile = File("$enhancePath/main.js");
|
||||
if (await debugFile.exists()) {
|
||||
final debugContent = await debugFile.readAsString();
|
||||
await _loadDebugData(debugContent, assarState);
|
||||
return debugContent;
|
||||
}
|
||||
final enhanceFile = File("$enhancePath/${assarState.value?.version}.tar.gz");
|
||||
if (!await enhanceFile.exists()) {
|
||||
final downloadUrl =
|
||||
"${URLConf.gitApiRSILauncherEnhanceUrl}/archive/${assarState.value?.version}.tar.gz";
|
||||
final downloadUrl = "${URLConf.gitApiRSILauncherEnhanceUrl}/archive/${assarState.value?.version}.tar.gz";
|
||||
final r = await RSHttp.get(downloadUrl).unwrap();
|
||||
if (r.statusCode != 200 || r.data == null) {
|
||||
return "";
|
||||
@ -391,24 +354,18 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
await enhanceFile.create(recursive: true);
|
||||
await enhanceFile.writeAsBytes(r.data!, flush: true);
|
||||
}
|
||||
final severMainJS =
|
||||
await compute(_readArchive, (enhanceFile.path, "main.js"));
|
||||
final severMainJS = await compute(_readArchive, (enhanceFile.path, "main.js"));
|
||||
final serverMainJSString = severMainJS.toString();
|
||||
final scriptState = _readScriptState(serverMainJSString);
|
||||
if (assarState.value?.enabledLocalization == null) {
|
||||
assarState.value =
|
||||
assarState.value?.copyWith(enabledLocalization: scriptState.$1);
|
||||
dPrint(
|
||||
"[RsiLauncherEnhanceDialogUI] _loadEnhanceData enabledLocalization == ${scriptState.$1}");
|
||||
assarState.value = assarState.value?.copyWith(enabledLocalization: scriptState.$1);
|
||||
dPrint("[RsiLauncherEnhanceDialogUI] _loadEnhanceData enabledLocalization == ${scriptState.$1}");
|
||||
}
|
||||
if (assarState.value?.enableDownloaderBoost == null) {
|
||||
assarState.value =
|
||||
assarState.value?.copyWith(enableDownloaderBoost: scriptState.$2);
|
||||
dPrint(
|
||||
"[RsiLauncherEnhanceDialogUI] _loadEnhanceData enableDownloaderBoost == ${scriptState.$2}");
|
||||
assarState.value = assarState.value?.copyWith(enableDownloaderBoost: scriptState.$2);
|
||||
dPrint("[RsiLauncherEnhanceDialogUI] _loadEnhanceData enableDownloaderBoost == ${scriptState.$2}");
|
||||
}
|
||||
assarState.value =
|
||||
assarState.value?.copyWith(serverData: serverMainJSString);
|
||||
assarState.value = assarState.value?.copyWith(serverData: serverMainJSString);
|
||||
return serverMainJSString;
|
||||
}
|
||||
|
||||
@ -432,12 +389,10 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
}
|
||||
|
||||
// ignore: constant_identifier_names
|
||||
static const SC_TOOLBOX_ENABLED_LOCALIZATION_SCRIPT_START =
|
||||
"const SC_TOOLBOX_ENABLED_LOCALIZATION = ";
|
||||
static const SC_TOOLBOX_ENABLED_LOCALIZATION_SCRIPT_START = "const SC_TOOLBOX_ENABLED_LOCALIZATION = ";
|
||||
|
||||
// ignore: constant_identifier_names
|
||||
static const SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST_SCRIPT_START =
|
||||
"const SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST = ";
|
||||
static const SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST_SCRIPT_START = "const SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST = ";
|
||||
|
||||
(String?, bool?) _readScriptState(String mainJsString) {
|
||||
String? enabledLocalization;
|
||||
@ -449,35 +404,44 @@ class RsiLauncherEnhanceDialogUI extends HookConsumerWidget {
|
||||
.substring(SC_TOOLBOX_ENABLED_LOCALIZATION_SCRIPT_START.length)
|
||||
.replaceAll("\"", "")
|
||||
.replaceAll(";", "");
|
||||
} else if (lineTrim
|
||||
.startsWith(SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST_SCRIPT_START)) {
|
||||
enableDownloaderBoost = lineTrim
|
||||
.substring(
|
||||
SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST_SCRIPT_START.length)
|
||||
.toLowerCase() ==
|
||||
"true;";
|
||||
} else if (lineTrim.startsWith(SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST_SCRIPT_START)) {
|
||||
enableDownloaderBoost =
|
||||
lineTrim.substring(SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST_SCRIPT_START.length).toLowerCase() == "true;";
|
||||
}
|
||||
}
|
||||
return (enabledLocalization, enableDownloaderBoost);
|
||||
}
|
||||
|
||||
Future<String> _genNewScript(
|
||||
ValueNotifier<RSILauncherStateData?> assarState) async {
|
||||
Future<String> _genNewScript(ValueNotifier<RSILauncherStateData?> assarState) async {
|
||||
final serverScriptLines = assarState.value!.serverData.split("\n");
|
||||
final StringBuffer scriptBuffer = StringBuffer("");
|
||||
for (final line in serverScriptLines) {
|
||||
final lineTrim = line.trim();
|
||||
if (lineTrim.startsWith(SC_TOOLBOX_ENABLED_LOCALIZATION_SCRIPT_START)) {
|
||||
scriptBuffer.writeln(
|
||||
"$SC_TOOLBOX_ENABLED_LOCALIZATION_SCRIPT_START\"${assarState.value!.enabledLocalization}\";");
|
||||
} else if (lineTrim
|
||||
.startsWith(SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST_SCRIPT_START)) {
|
||||
scriptBuffer.writeln(
|
||||
"$SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST_SCRIPT_START${assarState.value!.enableDownloaderBoost};");
|
||||
scriptBuffer
|
||||
.writeln("$SC_TOOLBOX_ENABLED_LOCALIZATION_SCRIPT_START\"${assarState.value!.enabledLocalization}\";");
|
||||
} else if (lineTrim.startsWith(SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST_SCRIPT_START)) {
|
||||
scriptBuffer
|
||||
.writeln("$SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST_SCRIPT_START${assarState.value!.enableDownloaderBoost};");
|
||||
} else {
|
||||
scriptBuffer.writeln(line);
|
||||
}
|
||||
}
|
||||
return scriptBuffer.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _loadDebugData(String debugContent, ValueNotifier<RSILauncherStateData?> assarState) async {
|
||||
assarState.value = assarState.value?.copyWith(serverData: debugContent);
|
||||
dPrint("[RsiLauncherEnhanceDialogUI] _loadEnhanceData from debug file");
|
||||
final scriptState = _readScriptState(debugContent);
|
||||
if (assarState.value?.enabledLocalization == null) {
|
||||
assarState.value = assarState.value?.copyWith(enabledLocalization: scriptState.$1);
|
||||
dPrint("[RsiLauncherEnhanceDialogUI] _loadEnhanceData enabledLocalization == ${scriptState.$1}");
|
||||
}
|
||||
if (assarState.value?.enableDownloaderBoost == null) {
|
||||
assarState.value = assarState.value?.copyWith(enableDownloaderBoost: scriptState.$2);
|
||||
dPrint("[RsiLauncherEnhanceDialogUI] _loadEnhanceData enableDownloaderBoost == ${scriptState.$2}");
|
||||
}
|
||||
assarState.value = assarState.value?.copyWith(serverData: debugContent);
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
// dart format width=80
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint
|
||||
@ -9,101 +10,58 @@ part of 'rsi_launcher_enhance_dialog_ui.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 _$RSILauncherStateData {
|
||||
String get version => throw _privateConstructorUsedError;
|
||||
asar_api.RsiLauncherAsarData get data => throw _privateConstructorUsedError;
|
||||
String get serverData => throw _privateConstructorUsedError;
|
||||
bool get isPatchInstalled => throw _privateConstructorUsedError;
|
||||
String? get enabledLocalization => throw _privateConstructorUsedError;
|
||||
bool? get enableDownloaderBoost => throw _privateConstructorUsedError;
|
||||
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)
|
||||
$RSILauncherStateDataCopyWith<RSILauncherStateData> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $RSILauncherStateDataCopyWith<$Res> {
|
||||
factory $RSILauncherStateDataCopyWith(RSILauncherStateData value,
|
||||
$Res Function(RSILauncherStateData) then) =
|
||||
_$RSILauncherStateDataCopyWithImpl<$Res, RSILauncherStateData>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{String version,
|
||||
asar_api.RsiLauncherAsarData data,
|
||||
String serverData,
|
||||
bool isPatchInstalled,
|
||||
String? enabledLocalization,
|
||||
bool? enableDownloaderBoost});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$RSILauncherStateDataCopyWithImpl<$Res,
|
||||
$Val extends RSILauncherStateData>
|
||||
implements $RSILauncherStateDataCopyWith<$Res> {
|
||||
_$RSILauncherStateDataCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of RSILauncherStateData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
$RSILauncherStateDataCopyWith<RSILauncherStateData> get copyWith =>
|
||||
_$RSILauncherStateDataCopyWithImpl<RSILauncherStateData>(
|
||||
this as RSILauncherStateData, _$identity);
|
||||
|
||||
@override
|
||||
$Res call({
|
||||
Object? version = null,
|
||||
Object? data = null,
|
||||
Object? serverData = null,
|
||||
Object? isPatchInstalled = null,
|
||||
Object? enabledLocalization = freezed,
|
||||
Object? enableDownloaderBoost = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
version: null == version
|
||||
? _value.version
|
||||
: version // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
data: null == data
|
||||
? _value.data
|
||||
: data // ignore: cast_nullable_to_non_nullable
|
||||
as asar_api.RsiLauncherAsarData,
|
||||
serverData: null == serverData
|
||||
? _value.serverData
|
||||
: serverData // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
isPatchInstalled: null == isPatchInstalled
|
||||
? _value.isPatchInstalled
|
||||
: isPatchInstalled // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
enabledLocalization: freezed == enabledLocalization
|
||||
? _value.enabledLocalization
|
||||
: enabledLocalization // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
enableDownloaderBoost: freezed == enableDownloaderBoost
|
||||
? _value.enableDownloaderBoost
|
||||
: enableDownloaderBoost // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
) as $Val);
|
||||
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 class _$$RSILauncherStateDataImplCopyWith<$Res>
|
||||
implements $RSILauncherStateDataCopyWith<$Res> {
|
||||
factory _$$RSILauncherStateDataImplCopyWith(_$RSILauncherStateDataImpl value,
|
||||
$Res Function(_$RSILauncherStateDataImpl) then) =
|
||||
__$$RSILauncherStateDataImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
abstract mixin class $RSILauncherStateDataCopyWith<$Res> {
|
||||
factory $RSILauncherStateDataCopyWith(RSILauncherStateData value,
|
||||
$Res Function(RSILauncherStateData) _then) =
|
||||
_$RSILauncherStateDataCopyWithImpl;
|
||||
@useResult
|
||||
$Res call(
|
||||
{String version,
|
||||
@ -115,12 +73,12 @@ abstract class _$$RSILauncherStateDataImplCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$RSILauncherStateDataImplCopyWithImpl<$Res>
|
||||
extends _$RSILauncherStateDataCopyWithImpl<$Res, _$RSILauncherStateDataImpl>
|
||||
implements _$$RSILauncherStateDataImplCopyWith<$Res> {
|
||||
__$$RSILauncherStateDataImplCopyWithImpl(_$RSILauncherStateDataImpl _value,
|
||||
$Res Function(_$RSILauncherStateDataImpl) _then)
|
||||
: super(_value, _then);
|
||||
class _$RSILauncherStateDataCopyWithImpl<$Res>
|
||||
implements $RSILauncherStateDataCopyWith<$Res> {
|
||||
_$RSILauncherStateDataCopyWithImpl(this._self, this._then);
|
||||
|
||||
final RSILauncherStateData _self;
|
||||
final $Res Function(RSILauncherStateData) _then;
|
||||
|
||||
/// Create a copy of RSILauncherStateData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@ -134,29 +92,29 @@ class __$$RSILauncherStateDataImplCopyWithImpl<$Res>
|
||||
Object? enabledLocalization = freezed,
|
||||
Object? enableDownloaderBoost = freezed,
|
||||
}) {
|
||||
return _then(_$RSILauncherStateDataImpl(
|
||||
return _then(_self.copyWith(
|
||||
version: null == version
|
||||
? _value.version
|
||||
? _self.version
|
||||
: version // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
data: null == data
|
||||
? _value.data
|
||||
? _self.data
|
||||
: data // ignore: cast_nullable_to_non_nullable
|
||||
as asar_api.RsiLauncherAsarData,
|
||||
serverData: null == serverData
|
||||
? _value.serverData
|
||||
? _self.serverData
|
||||
: serverData // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
isPatchInstalled: null == isPatchInstalled
|
||||
? _value.isPatchInstalled
|
||||
? _self.isPatchInstalled
|
||||
: isPatchInstalled // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
enabledLocalization: freezed == enabledLocalization
|
||||
? _value.enabledLocalization
|
||||
? _self.enabledLocalization
|
||||
: enabledLocalization // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
enableDownloaderBoost: freezed == enableDownloaderBoost
|
||||
? _value.enableDownloaderBoost
|
||||
? _self.enableDownloaderBoost
|
||||
: enableDownloaderBoost // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
));
|
||||
@ -165,8 +123,8 @@ class __$$RSILauncherStateDataImplCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$RSILauncherStateDataImpl implements _RSILauncherStateData {
|
||||
const _$RSILauncherStateDataImpl(
|
||||
class _RSILauncherStateData implements RSILauncherStateData {
|
||||
const _RSILauncherStateData(
|
||||
{required this.version,
|
||||
required this.data,
|
||||
required this.serverData,
|
||||
@ -188,16 +146,20 @@ class _$RSILauncherStateDataImpl implements _RSILauncherStateData {
|
||||
@override
|
||||
final bool? enableDownloaderBoost;
|
||||
|
||||
/// Create a copy of RSILauncherStateData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
String toString() {
|
||||
return 'RSILauncherStateData(version: $version, data: $data, serverData: $serverData, isPatchInstalled: $isPatchInstalled, enabledLocalization: $enabledLocalization, enableDownloaderBoost: $enableDownloaderBoost)';
|
||||
}
|
||||
@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 _$RSILauncherStateDataImpl &&
|
||||
other is _RSILauncherStateData &&
|
||||
(identical(other.version, version) || other.version == version) &&
|
||||
(identical(other.data, data) || other.data == data) &&
|
||||
(identical(other.serverData, serverData) ||
|
||||
@ -214,43 +176,76 @@ class _$RSILauncherStateDataImpl implements _RSILauncherStateData {
|
||||
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});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$RSILauncherStateDataCopyWithImpl<$Res>
|
||||
implements _$RSILauncherStateDataCopyWith<$Res> {
|
||||
__$RSILauncherStateDataCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _RSILauncherStateData _self;
|
||||
final $Res Function(_RSILauncherStateData) _then;
|
||||
|
||||
/// Create a copy of RSILauncherStateData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$RSILauncherStateDataImplCopyWith<_$RSILauncherStateDataImpl>
|
||||
get copyWith =>
|
||||
__$$RSILauncherStateDataImplCopyWithImpl<_$RSILauncherStateDataImpl>(
|
||||
this, _$identity);
|
||||
$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?,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _RSILauncherStateData implements RSILauncherStateData {
|
||||
const factory _RSILauncherStateData(
|
||||
{required final String version,
|
||||
required final asar_api.RsiLauncherAsarData data,
|
||||
required final String serverData,
|
||||
final bool isPatchInstalled,
|
||||
final String? enabledLocalization,
|
||||
final bool? enableDownloaderBoost}) = _$RSILauncherStateDataImpl;
|
||||
|
||||
@override
|
||||
String get version;
|
||||
@override
|
||||
asar_api.RsiLauncherAsarData get data;
|
||||
@override
|
||||
String get serverData;
|
||||
@override
|
||||
bool get isPatchInstalled;
|
||||
@override
|
||||
String? get enabledLocalization;
|
||||
@override
|
||||
bool? get enableDownloaderBoost;
|
||||
|
||||
/// Create a copy of RSILauncherStateData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$RSILauncherStateDataImplCopyWith<_$RSILauncherStateDataImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
// dart format on
|
||||
|
@ -27,7 +27,7 @@ final Map<String?, String> logAnalyzeSearchTypeMap = {
|
||||
};
|
||||
|
||||
@freezed
|
||||
class LogAnalyzeLineData with _$LogAnalyzeLineData {
|
||||
abstract class LogAnalyzeLineData with _$LogAnalyzeLineData {
|
||||
const factory LogAnalyzeLineData({
|
||||
required String type,
|
||||
required String title,
|
||||
|
@ -1,3 +1,4 @@
|
||||
// dart format width=80
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint
|
||||
@ -9,93 +10,61 @@ part of 'log_analyze_provider.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 _$LogAnalyzeLineData {
|
||||
String get type => throw _privateConstructorUsedError;
|
||||
String get title => throw _privateConstructorUsedError;
|
||||
String? get data => throw _privateConstructorUsedError;
|
||||
String? get dateTime => throw _privateConstructorUsedError;
|
||||
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)
|
||||
$LogAnalyzeLineDataCopyWith<LogAnalyzeLineData> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $LogAnalyzeLineDataCopyWith<$Res> {
|
||||
factory $LogAnalyzeLineDataCopyWith(
|
||||
LogAnalyzeLineData value, $Res Function(LogAnalyzeLineData) then) =
|
||||
_$LogAnalyzeLineDataCopyWithImpl<$Res, LogAnalyzeLineData>;
|
||||
@useResult
|
||||
$Res call({String type, String title, String? data, String? dateTime});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$LogAnalyzeLineDataCopyWithImpl<$Res, $Val extends LogAnalyzeLineData>
|
||||
implements $LogAnalyzeLineDataCopyWith<$Res> {
|
||||
_$LogAnalyzeLineDataCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of LogAnalyzeLineData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
$LogAnalyzeLineDataCopyWith<LogAnalyzeLineData> get copyWith =>
|
||||
_$LogAnalyzeLineDataCopyWithImpl<LogAnalyzeLineData>(
|
||||
this as LogAnalyzeLineData, _$identity);
|
||||
|
||||
@override
|
||||
$Res call({
|
||||
Object? type = null,
|
||||
Object? title = null,
|
||||
Object? data = freezed,
|
||||
Object? dateTime = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
type: null == type
|
||||
? _value.type
|
||||
: type // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
title: null == title
|
||||
? _value.title
|
||||
: title // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
data: freezed == data
|
||||
? _value.data
|
||||
: data // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
dateTime: freezed == dateTime
|
||||
? _value.dateTime
|
||||
: dateTime // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
) as $Val);
|
||||
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 class _$$LogAnalyzeLineDataImplCopyWith<$Res>
|
||||
implements $LogAnalyzeLineDataCopyWith<$Res> {
|
||||
factory _$$LogAnalyzeLineDataImplCopyWith(_$LogAnalyzeLineDataImpl value,
|
||||
$Res Function(_$LogAnalyzeLineDataImpl) then) =
|
||||
__$$LogAnalyzeLineDataImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
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 __$$LogAnalyzeLineDataImplCopyWithImpl<$Res>
|
||||
extends _$LogAnalyzeLineDataCopyWithImpl<$Res, _$LogAnalyzeLineDataImpl>
|
||||
implements _$$LogAnalyzeLineDataImplCopyWith<$Res> {
|
||||
__$$LogAnalyzeLineDataImplCopyWithImpl(_$LogAnalyzeLineDataImpl _value,
|
||||
$Res Function(_$LogAnalyzeLineDataImpl) _then)
|
||||
: super(_value, _then);
|
||||
class _$LogAnalyzeLineDataCopyWithImpl<$Res>
|
||||
implements $LogAnalyzeLineDataCopyWith<$Res> {
|
||||
_$LogAnalyzeLineDataCopyWithImpl(this._self, this._then);
|
||||
|
||||
final LogAnalyzeLineData _self;
|
||||
final $Res Function(LogAnalyzeLineData) _then;
|
||||
|
||||
/// Create a copy of LogAnalyzeLineData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@ -107,21 +76,21 @@ class __$$LogAnalyzeLineDataImplCopyWithImpl<$Res>
|
||||
Object? data = freezed,
|
||||
Object? dateTime = freezed,
|
||||
}) {
|
||||
return _then(_$LogAnalyzeLineDataImpl(
|
||||
return _then(_self.copyWith(
|
||||
type: null == type
|
||||
? _value.type
|
||||
? _self.type
|
||||
: type // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
title: null == title
|
||||
? _value.title
|
||||
? _self.title
|
||||
: title // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
data: freezed == data
|
||||
? _value.data
|
||||
? _self.data
|
||||
: data // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
dateTime: freezed == dateTime
|
||||
? _value.dateTime
|
||||
? _self.dateTime
|
||||
: dateTime // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
@ -130,8 +99,8 @@ class __$$LogAnalyzeLineDataImplCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$LogAnalyzeLineDataImpl implements _LogAnalyzeLineData {
|
||||
const _$LogAnalyzeLineDataImpl(
|
||||
class _LogAnalyzeLineData implements LogAnalyzeLineData {
|
||||
const _LogAnalyzeLineData(
|
||||
{required this.type, required this.title, this.data, this.dateTime});
|
||||
|
||||
@override
|
||||
@ -143,16 +112,19 @@ class _$LogAnalyzeLineDataImpl implements _LogAnalyzeLineData {
|
||||
@override
|
||||
final String? dateTime;
|
||||
|
||||
/// Create a copy of LogAnalyzeLineData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
String toString() {
|
||||
return 'LogAnalyzeLineData(type: $type, title: $title, data: $data, dateTime: $dateTime)';
|
||||
}
|
||||
@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 _$LogAnalyzeLineDataImpl &&
|
||||
other is _LogAnalyzeLineData &&
|
||||
(identical(other.type, type) || other.type == type) &&
|
||||
(identical(other.title, title) || other.title == title) &&
|
||||
(identical(other.data, data) || other.data == data) &&
|
||||
@ -163,36 +135,60 @@ class _$LogAnalyzeLineDataImpl implements _LogAnalyzeLineData {
|
||||
@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});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$LogAnalyzeLineDataCopyWithImpl<$Res>
|
||||
implements _$LogAnalyzeLineDataCopyWith<$Res> {
|
||||
__$LogAnalyzeLineDataCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _LogAnalyzeLineData _self;
|
||||
final $Res Function(_LogAnalyzeLineData) _then;
|
||||
|
||||
/// Create a copy of LogAnalyzeLineData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$LogAnalyzeLineDataImplCopyWith<_$LogAnalyzeLineDataImpl> get copyWith =>
|
||||
__$$LogAnalyzeLineDataImplCopyWithImpl<_$LogAnalyzeLineDataImpl>(
|
||||
this, _$identity);
|
||||
$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?,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _LogAnalyzeLineData implements LogAnalyzeLineData {
|
||||
const factory _LogAnalyzeLineData(
|
||||
{required final String type,
|
||||
required final String title,
|
||||
final String? data,
|
||||
final String? dateTime}) = _$LogAnalyzeLineDataImpl;
|
||||
|
||||
@override
|
||||
String get type;
|
||||
@override
|
||||
String get title;
|
||||
@override
|
||||
String? get data;
|
||||
@override
|
||||
String? get dateTime;
|
||||
|
||||
/// Create a copy of LogAnalyzeLineData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$LogAnalyzeLineDataImplCopyWith<_$LogAnalyzeLineDataImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
// dart format on
|
||||
|
@ -43,7 +43,7 @@ class ToolsItemData {
|
||||
}
|
||||
|
||||
@freezed
|
||||
class ToolsUIState with _$ToolsUIState {
|
||||
abstract class ToolsUIState with _$ToolsUIState {
|
||||
factory ToolsUIState({
|
||||
@Default(false) bool working,
|
||||
@Default("") String scInstalledPath,
|
||||
|
@ -1,3 +1,4 @@
|
||||
// dart format width=80
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint
|
||||
@ -9,108 +10,69 @@ part of 'tools_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 _$ToolsUIState {
|
||||
bool get working => throw _privateConstructorUsedError;
|
||||
String get scInstalledPath => throw _privateConstructorUsedError;
|
||||
String get rsiLauncherInstalledPath => throw _privateConstructorUsedError;
|
||||
List<String> get scInstallPaths => throw _privateConstructorUsedError;
|
||||
List<String> get rsiLauncherInstallPaths =>
|
||||
throw _privateConstructorUsedError;
|
||||
List<ToolsItemData> get items => throw _privateConstructorUsedError;
|
||||
bool get isItemLoading => throw _privateConstructorUsedError;
|
||||
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)
|
||||
$ToolsUIStateCopyWith<ToolsUIState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $ToolsUIStateCopyWith<$Res> {
|
||||
factory $ToolsUIStateCopyWith(
|
||||
ToolsUIState value, $Res Function(ToolsUIState) then) =
|
||||
_$ToolsUIStateCopyWithImpl<$Res, ToolsUIState>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool working,
|
||||
String scInstalledPath,
|
||||
String rsiLauncherInstalledPath,
|
||||
List<String> scInstallPaths,
|
||||
List<String> rsiLauncherInstallPaths,
|
||||
List<ToolsItemData> items,
|
||||
bool isItemLoading});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$ToolsUIStateCopyWithImpl<$Res, $Val extends ToolsUIState>
|
||||
implements $ToolsUIStateCopyWith<$Res> {
|
||||
_$ToolsUIStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of ToolsUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
$ToolsUIStateCopyWith<ToolsUIState> get copyWith =>
|
||||
_$ToolsUIStateCopyWithImpl<ToolsUIState>(
|
||||
this as ToolsUIState, _$identity);
|
||||
|
||||
@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(_value.copyWith(
|
||||
working: null == working
|
||||
? _value.working
|
||||
: working // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
scInstalledPath: null == scInstalledPath
|
||||
? _value.scInstalledPath
|
||||
: scInstalledPath // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
rsiLauncherInstalledPath: null == rsiLauncherInstalledPath
|
||||
? _value.rsiLauncherInstalledPath
|
||||
: rsiLauncherInstalledPath // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
scInstallPaths: null == scInstallPaths
|
||||
? _value.scInstallPaths
|
||||
: scInstallPaths // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
rsiLauncherInstallPaths: null == rsiLauncherInstallPaths
|
||||
? _value.rsiLauncherInstallPaths
|
||||
: rsiLauncherInstallPaths // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
items: null == items
|
||||
? _value.items
|
||||
: items // ignore: cast_nullable_to_non_nullable
|
||||
as List<ToolsItemData>,
|
||||
isItemLoading: null == isItemLoading
|
||||
? _value.isItemLoading
|
||||
: isItemLoading // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
) as $Val);
|
||||
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 class _$$ToolsUIStateImplCopyWith<$Res>
|
||||
implements $ToolsUIStateCopyWith<$Res> {
|
||||
factory _$$ToolsUIStateImplCopyWith(
|
||||
_$ToolsUIStateImpl value, $Res Function(_$ToolsUIStateImpl) then) =
|
||||
__$$ToolsUIStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
abstract mixin class $ToolsUIStateCopyWith<$Res> {
|
||||
factory $ToolsUIStateCopyWith(
|
||||
ToolsUIState value, $Res Function(ToolsUIState) _then) =
|
||||
_$ToolsUIStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call(
|
||||
{bool working,
|
||||
@ -123,12 +85,11 @@ abstract class _$$ToolsUIStateImplCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$ToolsUIStateImplCopyWithImpl<$Res>
|
||||
extends _$ToolsUIStateCopyWithImpl<$Res, _$ToolsUIStateImpl>
|
||||
implements _$$ToolsUIStateImplCopyWith<$Res> {
|
||||
__$$ToolsUIStateImplCopyWithImpl(
|
||||
_$ToolsUIStateImpl _value, $Res Function(_$ToolsUIStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
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.
|
||||
@ -143,33 +104,33 @@ class __$$ToolsUIStateImplCopyWithImpl<$Res>
|
||||
Object? items = null,
|
||||
Object? isItemLoading = null,
|
||||
}) {
|
||||
return _then(_$ToolsUIStateImpl(
|
||||
return _then(_self.copyWith(
|
||||
working: null == working
|
||||
? _value.working
|
||||
? _self.working
|
||||
: working // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
scInstalledPath: null == scInstalledPath
|
||||
? _value.scInstalledPath
|
||||
? _self.scInstalledPath
|
||||
: scInstalledPath // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
rsiLauncherInstalledPath: null == rsiLauncherInstalledPath
|
||||
? _value.rsiLauncherInstalledPath
|
||||
? _self.rsiLauncherInstalledPath
|
||||
: rsiLauncherInstalledPath // 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>,
|
||||
rsiLauncherInstallPaths: null == rsiLauncherInstallPaths
|
||||
? _value._rsiLauncherInstallPaths
|
||||
? _self.rsiLauncherInstallPaths
|
||||
: rsiLauncherInstallPaths // ignore: cast_nullable_to_non_nullable
|
||||
as List<String>,
|
||||
items: null == items
|
||||
? _value._items
|
||||
? _self.items
|
||||
: items // ignore: cast_nullable_to_non_nullable
|
||||
as List<ToolsItemData>,
|
||||
isItemLoading: null == isItemLoading
|
||||
? _value.isItemLoading
|
||||
? _self.isItemLoading
|
||||
: isItemLoading // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
));
|
||||
@ -178,8 +139,8 @@ class __$$ToolsUIStateImplCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$ToolsUIStateImpl implements _ToolsUIState {
|
||||
_$ToolsUIStateImpl(
|
||||
class _ToolsUIState implements ToolsUIState {
|
||||
_ToolsUIState(
|
||||
{this.working = false,
|
||||
this.scInstalledPath = "",
|
||||
this.rsiLauncherInstalledPath = "",
|
||||
@ -232,16 +193,19 @@ class _$ToolsUIStateImpl implements _ToolsUIState {
|
||||
@JsonKey()
|
||||
final bool isItemLoading;
|
||||
|
||||
/// Create a copy of ToolsUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
String toString() {
|
||||
return 'ToolsUIState(working: $working, scInstalledPath: $scInstalledPath, rsiLauncherInstalledPath: $rsiLauncherInstalledPath, scInstallPaths: $scInstallPaths, rsiLauncherInstallPaths: $rsiLauncherInstallPaths, items: $items, isItemLoading: $isItemLoading)';
|
||||
}
|
||||
@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 _$ToolsUIStateImpl &&
|
||||
other is _ToolsUIState &&
|
||||
(identical(other.working, working) || other.working == working) &&
|
||||
(identical(other.scInstalledPath, scInstalledPath) ||
|
||||
other.scInstalledPath == scInstalledPath) &&
|
||||
@ -268,44 +232,82 @@ class _$ToolsUIStateImpl implements _ToolsUIState {
|
||||
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});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
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.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$ToolsUIStateImplCopyWith<_$ToolsUIStateImpl> get copyWith =>
|
||||
__$$ToolsUIStateImplCopyWithImpl<_$ToolsUIStateImpl>(this, _$identity);
|
||||
$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,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _ToolsUIState implements ToolsUIState {
|
||||
factory _ToolsUIState(
|
||||
{final bool working,
|
||||
final String scInstalledPath,
|
||||
final String rsiLauncherInstalledPath,
|
||||
final List<String> scInstallPaths,
|
||||
final List<String> rsiLauncherInstallPaths,
|
||||
final List<ToolsItemData> items,
|
||||
final bool isItemLoading}) = _$ToolsUIStateImpl;
|
||||
|
||||
@override
|
||||
bool get working;
|
||||
@override
|
||||
String get scInstalledPath;
|
||||
@override
|
||||
String get rsiLauncherInstalledPath;
|
||||
@override
|
||||
List<String> get scInstallPaths;
|
||||
@override
|
||||
List<String> get rsiLauncherInstallPaths;
|
||||
@override
|
||||
List<ToolsItemData> get items;
|
||||
@override
|
||||
bool get isItemLoading;
|
||||
|
||||
/// Create a copy of ToolsUIState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$ToolsUIStateImplCopyWith<_$ToolsUIStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
// dart format on
|
||||
|
Reference in New Issue
Block a user