how to read the URL in a flutter web app code example Example: flutter web get url import 'dart:html'; var url = window.location.href;