fullUrl method

String fullUrl()

The full URL with the query string, like https://example.com/users?page=2.

Implementation

String fullUrl() {
  String query = uri.hasQuery ? '?${uri.query}' : '';
  return '${scheme()}://${host()}${uri.path}$query';
}