CommonUtils class

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 Properties

apkName String
getter/setter pair
defaultEnLanguage bool
getter/setter pair

Static Methods

currentTimeMillis() int
deleteApkFile({String fileName = ''}) Future<void>
文件没有校验完整性 所以每次安装完或重启app需要手动删除下
getApkFile({String fileName = ''}) Future<File?>
/data/user/0/XXX.XXX.XXX/files/z_update/XXX.apk
getDialogName() String
getPackageInfo() Future<PackageInfo>
获取应用包信息
getPackageName() Future<String>
获取应用包名
getTargetSize(double kbSize) String
getVersionCode() Future<String>
获取应用版本号
installAPP(String uri) → void
安装apk