openUrl static method

dynamic openUrl(
  1. String path
)

Implementation

static openUrl(String path) async {
  if (!await launchUrl(Uri.parse(path), webOnlyWindowName: '_blank')) {
    throw Exception('Could not launch $path');
  }
}