jumpAppStore static method

Future<void> jumpAppStore({
  1. String? url,
})

跳转AppStore

Implementation

static Future<void> jumpAppStore({String? url}) async {
  // 这是微信的地址,到时候换成自己的应用的地址
  final tempURL = url ?? '';
  final Uri uri = Uri.parse(tempURL);
  if (await canLaunchUrl(uri)) {
    await launchUrl(uri);
  } else {
    AppLog.i("跳转失败!");
  }
}