UpdateInfo class
The outcome of an update check.
Constructors
- UpdateInfo({required String currentVersion, required String latestVersion, required bool isUpdateAvailable, String? releaseNotes, String? downloadUrl})
-
const
-
UpdateInfo.fromJson(Map<
String, dynamic> json) -
factory
Properties
- currentVersion → String
-
The currently running version.
final
- downloadUrl → String?
-
Optional download/landing URL for the update.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isUpdateAvailable → bool
-
Whether latestVersion is newer than currentVersion.
final
- latestVersion → String
-
The latest available version.
final
- releaseNotes → String?
-
Optional release notes for the available update.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
encode(
) → String - Convenience for feed/fetch responses.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override