openPlatformApp abstract method

Future<void> openPlatformApp({
  1. required Object androidAppId,
})

Opens a platform-specific app.

On Android, opens the app specified by androidAppId (package name).

You can pass a GoogleApp enum for common Android apps or a custom app ID string.

Example with enums:

await $.platform.openPlatformApp(
  androidAppId: GoogleApp.chrome,
);

Example with custom app IDs:

await $.platform.openPlatformApp(
  androidAppId: 'com.mycompany.myapp',
);

Implementation

Future<void> openPlatformApp({required Object androidAppId});