launchAppStore method

Future<void> launchAppStore(
  1. String appStoreLink
)

Launches the Apple App Store or Google Play Store page for the app.

Implementation

Future<void> launchAppStore(String appStoreLink) async {
  debugPrint(appStoreLink);
  if (await canLaunch(appStoreLink)) {
    await launch(appStoreLink);
  } else {
    throw 'Could not launch appStoreLink';
  }
}