AppUtil class

应用工具类 提供一些常用的应用信息获取方法

Constructors

AppUtil()

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

getAppInfo() Future<({String appName, String buildNumber, String packageName, String version})>
获取应用信息 返回 (应用名称, 包名, 版本号, 构建号)
getAppUUID() Future<String>
获取钥匙串中存储的应用UUID
isRTL() bool
方向是否是rtl 从右向左的语言:阿拉伯语、希伯来语(以色列)、波斯语、乌尔都语(巴基斯坦、印度)、叙利亚语、库尔德语(伊拉克) 默认为false
openAppSettings() → void
打开应用设置
打开链接或者跳转到其他App @param url 链接
setStatusBarStyle({bool isDark = false, bool isTransparent = true}) → void
设置状态栏样式
share({String subject = '', String title = '', String text = '', String url = '', List<XFile> files = const []}) Future<bool>
分享