directUrl static method

void directUrl(
  1. String link
)

Implementation

static void directUrl(String link) async {
  Uri uri = Uri.parse(link);
  if (await canLaunchUrl(uri)) {
    await launchUrl(uri);
  }
}