title: flutter web open url and get data
body: <p>How to open url and get data.
  For example I open an url on web browser and after processing I need to fetch the url.
  Url launcher lib only return boolean and I can't get data from html lib.</p>
  <p>This is the code:</p>
  <pre><code>void main() {
    runApp(MaterialApp(
      home: new Scaffold(
        body: new Center(
          child: new ElevatedButton(
            onPressed: () {
              //_launchInBrowser(Uri(scheme: 'https', host: &quot;dart.dev&quot;));
              var data = html.window.open(&quot;https://dart.dev&quot;, &quot;dart dev&quot;);
              print(data.location);
            },
            child: new Text('Show Flutter homepage'),
          ),
        ),
      ),
    ));
  }
  
  Future&lt;void&gt; _launchInBrowser(Uri url) async {
    if (!await launchUrl(
      url,
      mode: LaunchMode.externalApplication,
    )) {
      throw 'Could not launch $url';
    }
  }
  </code></pre>