mirror of
https://github.com/PranshulGG/WeatherMaster.git
synced 2026-10-21 18:43:03 -05:00
11 lines
281 B
Dart
11 lines
281 B
Dart
import 'package:url_launcher/url_launcher.dart';
|
|
import 'dart:async';
|
|
|
|
Future<void> openLink(String urlString) async {
|
|
final Uri url = Uri.parse(urlString);
|
|
|
|
if (!await launchUrl(url, mode: LaunchMode.externalApplication)) {
|
|
throw Exception('Could not launch $url');
|
|
}
|
|
}
|