launchWhatsApp function

void launchWhatsApp(
  1. String number, {
  2. LaunchMode mode = LaunchMode.externalApplication,
})

Implementation

void launchWhatsApp(final String number, {LaunchMode mode = LaunchMode.externalApplication}) async => await launchURL(
      "https://api.whatsapp.com/send?phone=$number",
      mode: mode,
    );