openPlayStore static method
Opens the app’s page in the Google Play Store.
Implementation
static Future<void> openPlayStore({String packageName = ''}) async {
var uri = 'market://details?id=$packageName';
if (packageName.isEmpty) {
final PackageInfo packageInfo = await PackageInfo.fromPlatform();
final String packageName = packageInfo.packageName;
uri = 'market://details?id=$packageName';
}
await openUrl(uri);
}