makePhoneCall function

dynamic makePhoneCall(
  1. String phoneNumber
)

Implementation

makePhoneCall(String phoneNumber) async {
  try {
    final Uri launchUri = Uri(
      scheme: 'tel',
      path: "+$phoneNumber",
    );
    await launchUrl(launchUri);
  } on Exception catch (e) {
    print(e);
  }
}