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)方向语言
-
openAppSettings(
) → void - 打开系统的应用设置页面
-
openLink(
String url) → void - 打开链接或跳转到指定App
-
setStatusBarStyle(
{bool isDark = false, bool isTransparent = true}) → void - 设置状态栏样式
- 分享内容到系统分享面板(文本、链接、图片等)