mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-24 01:13:40 +08:00
41 lines
1.3 KiB
Dart
41 lines
1.3 KiB
Dart
|
// This file is automatically generated, so please do not edit it.
|
||
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.32.
|
||
|
|
||
|
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
||
|
|
||
|
import '../frb_generated.dart';
|
||
|
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
|
||
|
|
||
|
Future<RsiLauncherAsarData> getRsiLauncherAsarData(
|
||
|
{required String asarPath, dynamic hint}) =>
|
||
|
RustLib.instance.api.getRsiLauncherAsarData(asarPath: asarPath, hint: hint);
|
||
|
|
||
|
class RsiLauncherAsarData {
|
||
|
final String asarPath;
|
||
|
final String mainJsPath;
|
||
|
final Uint8List mainJsContent;
|
||
|
|
||
|
const RsiLauncherAsarData({
|
||
|
required this.asarPath,
|
||
|
required this.mainJsPath,
|
||
|
required this.mainJsContent,
|
||
|
});
|
||
|
|
||
|
Future<void> writeMainJs({required List<int> content, dynamic hint}) =>
|
||
|
RustLib.instance.api.rsiLauncherAsarDataWriteMainJs(
|
||
|
that: this, content: content, hint: hint);
|
||
|
|
||
|
@override
|
||
|
int get hashCode =>
|
||
|
asarPath.hashCode ^ mainJsPath.hashCode ^ mainJsContent.hashCode;
|
||
|
|
||
|
@override
|
||
|
bool operator ==(Object other) =>
|
||
|
identical(this, other) ||
|
||
|
other is RsiLauncherAsarData &&
|
||
|
runtimeType == other.runtimeType &&
|
||
|
asarPath == other.asarPath &&
|
||
|
mainJsPath == other.mainJsPath &&
|
||
|
mainJsContent == other.mainJsContent;
|
||
|
}
|