showPaidVersion static method

Future<void> showPaidVersion()

Opens the paid version of the app in the Google Play Store.

Implementation

static Future<void> showPaidVersion() async {
  final PackageInfo packageInfo = await PackageInfo.fromPlatform();
  final String packageName = packageInfo.packageName;
  final uri = 'market://details?id=$packageName.paid';
  await openUrl(uri);
}