PackageInfoUtils class
App 包信息读取工具(单例,基于 package_info_plus)。
Constructors
- PackageInfoUtils()
-
factory
Properties
- appName → String
-
App 显示名称。
no setter
- buildNumber → String
-
版本号(build number)。
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- packageName → String
-
包名(如
com.example.app)。no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → String
-
版本名(如
1.2.0)。no setter
Methods
-
init(
) → Future< void> - 从平台读取并缓存包信息。失败仅记录日志,不抛出(getter 返回空串)。
-
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