email method
? Send Email With The Passed String As Email Body
Implementation
void email(String to, {String subject = 'New Mail'}) async {
if (await canLaunchUrl(
Uri.parse('mailto:$to?subject=$subject&body=$this'))) {
launchUrl(Uri.parse('mailto:$to?subject=$subject&body=$this'));
} else {
throw Exception('Invalid Email Address');
}
}