makePhoneCall static method

void makePhoneCall(
  1. String phoneNumber
)

Implementation

static void makePhoneCall(String phoneNumber) async {
  final Uri phoneUri = Uri(scheme: 'tel', path: phoneNumber);
  if (await canLaunchUrl(phoneUri)) {
    await launchUrl(phoneUri);
  } else {
    ChatUIToast.show(S.of().chatMessageCallError);
  }
}