AppUpdateInfo class
Enhanced app update information class
Constructors
-
AppUpdateInfo({required UpdateAvailability updateAvailability, required bool immediateUpdateAllowed, required List<
int> ? immediateAllowedPreconditions, required bool flexibleUpdateAllowed, required List<int> ? flexibleAllowedPreconditions, required int? availableVersionCode, required InstallStatus installStatus, required String packageName, required int? clientVersionStalenessDays, required int updatePriority, String? appStoreVersion, String? appStoreLink, String? currentVersion}) -
const
Properties
- appStoreLink → String?
-
App Store link (iOS only)
final
- appStoreVersion → String?
-
App Store version (iOS only)
final
- availableVersionCode → int?
-
The version code of the update (Android only)
final
- canUpdateFlexibly → bool
-
Whether the app can be updated flexibly
no setter
- canUpdateImmediately → bool
-
Whether the app can be updated immediately
no setter
- clientVersionStalenessDays → int?
-
Days since the update became available (Android only)
final
- currentVersion → String?
-
Current app version (iOS only)
final
-
flexibleAllowedPreconditions
→ List<
int> ? -
Reasons why flexible update cannot be started
final
- flexibleUpdateAllowed → bool
-
Whether a flexible update is allowed
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
immediateAllowedPreconditions
→ List<
int> ? -
Reasons why immediate update cannot be started
final
- immediateUpdateAllowed → bool
-
Whether an immediate update is allowed
final
- installStatus → InstallStatus
-
The progress status of the update
final
- isCriticalUpdate → bool
-
Whether this is a critical update (high priority and stale)
no setter
- isStaleUpdate → bool
-
Whether the update is considered stale (more than 7 days old)
no setter
- isUpdateAvailable → bool
-
Whether any update is available
no setter
- packageName → String
-
The package name for the app to be updated
final
- priority → UpdatePriority
-
Get update priority level
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updateAvailability → UpdateAvailability
-
Whether an update is available for the app
final
- updatePriority → int
-
Update priority level
final
Methods
-
copyWith(
{UpdateAvailability? updateAvailability, bool? immediateUpdateAllowed, List< int> ? immediateAllowedPreconditions, bool? flexibleUpdateAllowed, List<int> ? flexibleAllowedPreconditions, int? availableVersionCode, InstallStatus? installStatus, String? packageName, int? clientVersionStalenessDays, int? updatePriority, String? appStoreVersion, String? appStoreLink, String? currentVersion}) → AppUpdateInfo - Create a copy with updated values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override