listener property

void Function(UpdateStatus status)? listener
getter/setter pair

Return UpdateStatus whenever new event trigger

UpdateStatus.Checking when checking for an update

UpdateStatus.Available when an update is available

UpdateStatus.Pending when an update is preparing to download

UpdateStatus.Dowloading when an update starts downloading

UpdateStatus.Completed when the update is downloaded and ready to install

UpdateStatus.DialogDismissed when update dialog dismissed

UpdateStatus.Cancelled when an update is downloading and canceled

UpdateStatus.Failed when there is an error that stoped the update to download

Implementation

void Function(UpdateStatus status)? listener;