MethodChannelFlutterOtaUpdate class

An implementation of FlutterOtaUpdatePlatform that uses method channels.

Inheritance

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

downloadAndInstall({required String url, required String fileName, Map<String, String> headers = const {}, String? sha256, void onProgress(int received, int total)?}) → Future<void>
Downloads url to fileName, verifies it against sha256 when given, and opens the system installer. Completes once the installer is shown.
override
getAppVersion() → Future<String>
The installed app's version name (e.g. 1.2.3).
override
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