launchApplicationDetailsOnAppStore method

Future<bool> launchApplicationDetailsOnAppStore({
  1. required ApplicationAppStore store,
  2. required String packageName,
})

Implementation

Future<bool> launchApplicationDetailsOnAppStore({
  required ApplicationAppStore store,
  required String packageName,
}) async {
  AbstractAppStore appStore = AbstractAppStore(store);

  var url1 = appStore.packageDetailsUri(packageName).toString();
  var url2 = appStore.packageDetailsUriAlternative(packageName).toString();

  var res = await _open(url1);
  if (res != true) {
    res = await _open(url2);
  }

  return res;
}