setLaunchType method
Set the launch type of an app.
id
This should be the id from an app item of
management.ExtensionInfo.
launchType
The target launch type. Always check and make sure this
launch type is in ExtensionInfo.availableLaunchTypes, because the
available launch types vary on different platforms and configurations.
Implementation
Future<void> setLaunchType(
String id,
LaunchType launchType,
) async {
await promiseToFuture<void>($js.chrome.management.setLaunchType(
id,
launchType.toJS,
));
}