callPhone function

void callPhone(
  1. String phoneNumber
)

拨打电话

Implementation

void callPhone(String phoneNumber) {
  launchUrl(Uri.parse('tel:$phoneNumber'));
}