onSocialShareClick method
dynamic
onSocialShareClick(
Implementation
onSocialShareClick(String type) {
String facebookBase = 'https://www.facebook.com/share.php?u=';
String twitterBase = 'https://twitter.com/intent/tweet?url=';
String launchUrl = "";
if (type == "facebook") {
launchUrl = facebookBase + shareUrl;
} else {
launchUrl = twitterBase + shareUrl;
}
AppUrls.openUrl(launchUrl);
}