call static method

Future<bool> call(
  1. String phoneNumber
)

Implementation

static Future<bool> call(String phoneNumber) async {
  try {
    return launchUrl(Uri.parse('tel:${phoneNumber.split(' ').join()}'));
  } catch (e) {
    print(e);
  }
  return false;
}