sendSMS method
Implementation
void sendSMS(String contactPhoneNumber) async {
var info = await PackageInfo.fromPlatform();
Uri sms = Uri.parse('sms:$contactPhoneNumber?body=${AppConstants.smsContent.replaceAll('MirrorFly', info.appName)}');
if (await launchUrl(sms)) {
//app opened
} else {
//app is not opened
}
}