Line data Source code
1 : // Copyright 2023 The terCAD team. All rights reserved. 2 : // Use of this source code is governed by a CC BY-NC-ND 4.0 license that can be found in the LICENSE file. 3 : 4 : import 'package:url_launcher/url_launcher.dart'; 5 : 6 : mixin LauncherMixin { 7 0 : Future<void> openURL(String path) async { 8 0 : final url = Uri.parse(path); 9 0 : await launchUrl(url, mode: LaunchMode.externalApplication); 10 : } 11 : }