MethodChannelDesktopUpdater class
An implementation of DesktopUpdaterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- DesktopUpdaterPlatform
- MethodChannelDesktopUpdater
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getCurrentVersion(
) → Future< String?> -
Returns the raw current app version string from the native plugin.
override
-
getCurrentVersionInfo(
) → Future< Map< String, String?> ?> - Returns structured native version metadata for update checks.
-
getExecutablePath(
) → Future< String?> -
Returns the current executable path when the platform supports it.
override
-
getPlatformVersion(
) → Future< String?> -
Returns a platform-specific version string from the native plugin.
override
-
installUpdate(
{required String stagingPath, List< String> removedFiles = const [], bool allowUnsignedMacOSUpdates = false, String? diagnosticsLogPath}) → Future<void> -
Installs a staged update, then lets the native helper relaunch the app.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
restartApp(
) → Future< void> -
Restarts the current app without installing a staged update.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited