CommonUtils class

通用工具类 提供整个库中共用的工具方法

Constructors

CommonUtils()

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

formatFileSize(int bytes) String
格式化文件大小显示
generateApkFileName(String version) String
生成APK文件名
isValidApkFile(File file) Future<bool>
验证APK文件是否有效
parseVersion(String version) List<int>
解析版本号字符串
safeDeleteFile(File file) Future<void>
安全删除文件