dial method

void dial()

? Dial Phone Number

Implementation

void dial() async {
  if (await canLaunchUrl(Uri.parse('tel:$this'))) {
    launchUrl(Uri.parse('tel:$this'));
  } else {
    throw Exception('Invalid Phone Number');
  }
}