makePhoneCall method Null safety

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';
    if (await canLaunch(url)) {
      await launch(url);
    }
  }
}