This is the method that i want to use to connect my whatsapp,
void launchWhatsapp(@required number, @required message) async {
String url = "whatsapp://send?phone=$number&text=$message";
await canLaunchUrl(url) ? launch(url) : print("Can not open whatsapp");//The argument type 'String' can't be assigned to the parameter type 'Uri'.
}