launchEmail function
Implementation
launchEmail({
required String recipient,
required String subject,
required String body,
}) async {
Uri url = Uri(
scheme: 'mailto',
path: recipient,
query: 'subject=$subject&body=$body',
);
if (await canLaunchUrl(url)) {
await launchUrl(url);
} else {
print('Could not launch');
}
}