makeDirectCall static method

Future<void> makeDirectCall(
  1. String phoneNumber
)

Custom method: Make a direct phone call

Implementation

static Future<void> makeDirectCall(String phoneNumber) async {
  try {
    await _channel.invokeMethod('makeCall', {'phoneNumber': phoneNumber});
  } on PlatformException catch (e) {
    print("Error: ${e.message}");
  }
}