makePhoneCall static method

Future<void> makePhoneCall(
  1. String number
)

Implementation

static Future<void> makePhoneCall(String number) async {
  if (kIsWeb) {
    Clipboard.setData(ClipboardData(text: number));
    showFlushBar(value: true, textTrue: "Texto copiado");
  } else {
    String url = 'tel:$number';
      await launch(url);
  }
}