ShorebirdUpdater class abstract

Manage updates for a Shorebird app.

Constructors

ShorebirdUpdater()
Manage updates for a Shorebird app.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
Whether the updater is available on the current platform. The most common reasons for this returning false are:
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkForUpdate({UpdateTrack? track}) Future<UpdateStatus>
Checks for an available patch on track (or UpdateTrack.stable if no track is specified) and returns the UpdateStatus. This method should be used to determine the update status before calling update.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readCurrentPatch() Future<Patch?>
Returns information about the currently installed patch. Returns null if no patch has been installed. Returns null if the updater is not available. Throws a ReadPatchException if the read is unsuccessful.
readNextPatch() Future<Patch?>
Returns information about the most recently downloaded patch. Returns the same patch as readCurrentPatch if no new patch has been downloaded. Returns null if the updater is not available. Throws a ReadPatchException if the read is unsuccessful.
toString() String
A string representation of this object.
inherited
update({UpdateTrack? track}) Future<void>
Updates the app to the latest patch available on the specified track, or UpdateTrack.stable if no track is specified.

Operators

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