openApp static method

Future<void> openApp({
  1. required String androidApplicationId,
})

Attempt to open the app on the device with the `androidApplicationId`.

Will display a toast if no app is found.

`androidApplicationId` should not be empty or null.

Implementation

static Future<void> openApp({required String androidApplicationId}) async {
  assert(
    androidApplicationId.isNotEmpty,
    "[androidApplicationId] cannot be empty",
  );

  await _channel.invokeMethod(
    'openApp',
    <String, Object>{
      'applicationId': androidApplicationId,
    },
  );
}