browse method

void browse()

? Browse the passed String as Link

Implementation

void browse() async {
  if (await canLaunchUrl(Uri.parse(this))) {
    launchUrl(Uri.parse(this));
  } else {
    throw Exception('Invalid Link');
  }
}