ConchLoaderHostAction class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
calculateFileMD5(
String filePath) → Future< String> -
计算文件的MD5值
filePath文件路径 返回 MD5字符串(小写),如果文件不存在或计算失败则返回空字符串 -
decryptFile(
{required String encryptedFilePath, required String decryptedFilePath, required String secureKey, String? expectedMD5}) → Future< Map< String, dynamic> > -
解密补丁文件(包含密钥转换和文件解密的完整流程)
encryptedFilePath加密文件路径decryptedFilePath解密后文件保存路径secureKey原始加密密钥(会在原生端自动转换)expectedMD5期望的MD5值(可选) 返回 Map,包含 'success' (bool) 和 'errorMessage' (String,失败时提供) -
getApplicationDocumentsDirectory(
) → Future< String> - 获取应用文档目录
-
unzipFile(
String zipFilePath, String destinationDir) → Future< bool> - 解压zip文件到指定目录