getCurrentUri function

Uri? getCurrentUri()

Implementation

Uri? getCurrentUri() {
  try {
    return Uri.parse(html.window.location.href);
  } catch (_) {
    return null;
  }
}