gotoAppStore static method

Future<String?> gotoAppStore(
  1. String urlString
)

for iOS: go to app store by the url

Implementation

static Future<String?> gotoAppStore(String urlString) async {
  if (urlString.isEmpty) {
    return '';
  }
  Uri uri = Uri.parse(urlString);
  bool canLaunch = await canLaunchUrl(uri);
  if (canLaunch) {
    launchUrl(uri, mode: LaunchMode.externalApplication);
  }
  return '';
}