DeviceUtils class

Constructors

DeviceUtils()

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

isAndroid bool
no setter
isDesktop bool
no setter
isFuchsia bool
no setter
isIOS bool
no setter
isLinux bool
no setter
isMacOS bool
no setter
isMobile bool
no setter
isMobile2 bool
no setter
isWeb bool
Platform不能在web端使用
no setter
isWindows bool
no setter

Static Methods

appName() Future<String>
获取App名称
buildNumber() Future<String>
获取包build版本
buildSignature() Future<String>
获取包签名
getCachePath() Future<String?>
获取app缓存路径
getPackageInfo() Future<PackageInfo>
获取包信息
getPhoneLocalPath() Future<String?>
获取手机本地路径
installerStore() Future<String?>
packageName() Future<String>
获取包名称
version() Future<String>
获取包版本