shareAppLink method

Future<void> shareAppLink(
  1. String packageName
)

This method prompts a chooser to the user to choose where he wants to share the app link.

Implementation

Future<void> shareAppLink(String packageName) async {
  try {
    await _channel.invokeMethod("shareAppLink", {"packageName": packageName});
  } on PlatformException catch (e) {
    throwError(e, "sharing an app link");
  }
}