shareApp static method

Future<void> shareApp()

Shares the app link via supported sharing apps.

Implementation

static Future<void> shareApp() async {
  final PackageInfo packageInfo = await PackageInfo.fromPlatform();
  final String packageName = packageInfo.packageName;
  final String appName = packageInfo.appName;
  await SharePlus.instance.share(ShareParams(
    text: "Here's an excellent App that I use regularly and would like to recommend you: "
        '\nhttp://play.google.com/store/apps/details?id=$packageName',
    subject: 'Check out $appName app!',
  ));
}