FirmwareUpdateManager class abstract

Object that handles update process.

Constructors

FirmwareUpdateManager.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
logger FirmwareUpdateLogger
Get logger related to this update manager.
no setter
progressStream Stream<ProgressUpdate>
Stream emits ProgressUpdate events.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateInProgressStream Stream<bool>?
Stream emits events with stage of the update progress. Stream emits bool value that indicates if the update in progress.
no setter
updateStateStream Stream<FirmwareUpgradeState>?
Stream emits update state during update process
no setter

Methods

cancel() Future<void>
Cancel update.
inProgress() Future<bool>
Check if the progress is in process.
isPaused() Future<bool>
Check if the progress is paused.
kill() Future<void>
Kill the update manager instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<void>
Pause the update process.
readImageList() Future<List<ImageSlot>?>
Read current image list from the device.
resume() Future<void>
Resume the update process.
setup() Stream<FirmwareUpgradeState>
Prepare State Stream This method should be called before staring the update
toString() String
A string representation of this object.
inherited
update(List<Image> images, {FirmwareUpgradeConfiguration configuration = const FirmwareUpgradeConfiguration()}) Future<void>
Start update process
updateWithImageData({required Uint8List imageData, Uint8List? hash, FirmwareUpgradeConfiguration? configuration}) Future<void>
Start update process.

Operators

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