downloadFileWeb function

void downloadFileWeb(
  1. String url
)

Implementation

void downloadFileWeb(String url) async {
  if (await canLaunchUrlString(url)) {
    await launchUrlString(url);
  } else {
    throw 'Could not launch $url';
  }
}