UpdateInfo class
Represents the update evaluation result for an application.
Constructors
- UpdateInfo({required String currentVersion, required String latestVersion, required UpdateStatus status, String? iosAppId, String? androidPackageId})
-
Creates an UpdateInfo instance.
const
-
UpdateInfo.fromRemoteConfigValues({required Map<
String, String> values, required String currentVersion, String? iosAppId, String? androidPackageId}) -
Constructs an UpdateInfo by comparing
currentVersionagainst the Firebase Remote Config values invaluesforfl_updater_latest_versionandfl_updater_min_version.factory -
UpdateInfo.fromTemplateJson({required Map<
String, dynamic> template, required String currentVersion, TargetPlatform? platform, String? iosAppId, String? androidPackageId}) -
Constructs an UpdateInfo from a Firebase Remote Config template JSON
(e.g. exported from the Firebase Console containing "conditions" and "parameters").
factory
Properties
- androidPackageId → String?
-
The Android Google Play Store application package identifier.
final
- currentVersion → String
-
The currently installed version of the application.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- iosAppId → String?
-
The iOS App Store numeric identifier.
final
- latestVersion → String
-
The latest available version retrieved from Remote Config.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → UpdateStatus
-
The determined update requirement status (UpdateStatus.none,
UpdateStatus.soft, or UpdateStatus.force).
final
Methods
-
copyWith(
{UpdateStatus? status}) → UpdateInfo - Creates a copy of this UpdateInfo with updated fields.
-
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