rollback static method

Future<void> rollback({
  1. String? reason,
})

Rolls back to the embedded base release binary and purges faulty patches.

Implementation

static Future<void> rollback({String? reason}) async {
  logger.warn('BloomUpdates: Rolling back to base binary release. Reason: ${reason ?? "User / Watchdog request"}');
  _currentPatch.value = null;
  _pendingStagedManifest = null;
  _isReady.value = false;
  _isAvailable.value = false;
  _isDownloading.value = false;
  await _adapter.purgeActivePatch();
}