startApp static method

Future<bool?> startApp(
  1. String packageName
)

Launches an app with the specified package name.

packageName is the package name of the app to launch.

Returns a boolean indicating whether the operation was successful.

Implementation

static Future<bool?> startApp(String packageName) async {
  return _channel.invokeMethod(
    "startApp",
    {"package_name": packageName},
  );
}