Omar Shamali

Parse or Convert String to URI in Flutter dart and use url_launcher package

Author: Omar Shamali
Writing Date:

To parse (some people call it convert or casting, which they are different from each other, anyways to, to parse String as URI in Flutter Dart:

String link = "https://omarshamali.com/en";

link = Uri.parse(link);

use the URI where you want, for example, if you have the url_launcher package, open the URI like this:

launchUrl(link);