launch method

Future<void> launch()

Implementation

Future<void> launch() async {
  final uri = Uri.parse(this);
  if (await canLaunchUrl(uri)) {
    await launchUrl(uri);
  } else {
    throw 'url not exit! $this';
  }
}