handlePhonePress method

void handlePhonePress(
  1. String phone
)

Implementation

void handlePhonePress(String phone) async {
  final phoneUrl = 'tel:$phone';
  if (await canLaunchUrl(Uri.parse(phoneUrl))) {
    await launchUrl(Uri.parse(phoneUrl));
  }
}