AutoUpdater class

Simple static API for the auto-updater.

This provides the easiest way to use the plugin with sensible defaults and built-in UI. No callbacks or adapters needed.

// Initialize once at app startup
await AutoUpdater.init(
  baseUrl: 'https://app.v2.sk',
  projectSlug: 'my-app',
  channel: 'stable',
);

// Manual check from settings
AutoUpdater.checkForUpdates();

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance AutoUpdaterStandalone?
The underlying service instance (for advanced usage).
no setter
isInitialized bool
Whether the auto-updater has been initialized.
no setter
Global navigator key for showing dialogs.
no setter
scaffoldMessengerKey GlobalKey<ScaffoldMessengerState>
Global scaffold messenger key for showing snackbars.
no setter

Static Methods

checkForUpdates() Future<void>
Manually check for updates.
checkForUpdatesSilent() Future<void>
Check for updates silently (no UI feedback if no update).
dispose() → void
Dispose of resources.
getDebugInfo() String
Get debug info for troubleshooting update issues.
init({required String baseUrl, required String projectSlug, String channel = 'stable', bool checkOnStartup = true, Duration startupDelay = const Duration(seconds: 3), Color primaryColor = const Color(0xFF0D9488), AutoUpdaterStrings strings = const AutoUpdaterStrings()}) Future<void>
Initialize the auto-updater with ReleaseHub backend.
initWithConfig({required AutoUpdaterConfig config, Color primaryColor = const Color(0xFF0D9488)}) Future<void>
Initialize with a custom configuration.
showDebugDialog() Future<void>
Show a debug dialog with version check info.