WindowsAppLauncher class

Windows implementation of AppLauncher communicating with native Windows C++ plugin via Flutter MethodChannel.

Under the hood, native Windows code connects to the Windows Registry: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run.

Inheritance

Constructors

WindowsAppLauncher({required String appName, required String appPath, List<String> args = const []})
Creates a WindowsAppLauncher instance.
const

Properties

appName → String
The name of the application.
finalinherited
appPath → String
The file path to the application executable or bundle.
finalinherited
args → List<String>
Optional command-line arguments passed when the application starts at login.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

isEnabled() → Future<bool>
Checks whether the application is currently configured to open at login.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setEnabled(bool enabled) → Future<void>
Enables or disables launching the application at login.
override
toString() → String
A string representation of this object.
inherited

Operators

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