UPackageInfo class

App facts (name, id, version, build, install time…) — see UApp.packageInfo.

Annotations

Constructors

UPackageInfo({required String appName, required String packageName, required String version, required String buildNumber, String? installerStore, DateTime? installTime, DateTime? updateTime, String? signatureSha256, int? minSdk, int? targetSdk, bool isTestFlight = false, String? executablePath})
const
UPackageInfo.fromMap(Map<String, Object?> m)
Reads it from the native map.
factory

Properties

appName → String
App name.
final
buildNumber → String
"12" (pubspec build number).
final
executablePath → String?
Path of the app executable (desktop).
final
fullVersion → String
Version with build, "1.4.0+12".
no setter
hashCode → int
The hash code for this object.
no setterinherited
installerStore → String?
Raw installer id: "com.android.vending", "com.farsitel.bazaar", "app_store", …
final
installTime → DateTime?
First install time.
final
isTestFlight → bool
True in a TestFlight build.
final
minSdk → int?
Android min / target SDK from the manifest.
final
packageName → String
Android application id, Apple bundle id, Windows/Linux application id.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signatureSha256 → String?
SHA-256 of the signing certificate (Android), uppercase hex with colons. Compare it with your release certificate to detect a repackaged APK.
final
targetSdk → int?
Android target SDK.
final
updateTime → DateTime?
Last update time.
final
version → String
"1.4.0" (pubspec version without the build part).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
As a map.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited