uri property

Uri get uri

A Uri representation of the current state.

Implementation

Uri get uri {
  final queryParameters = {
    if (path != null) 'path': path,
    if (query?.isNotEmpty ?? false) 'q': query,
    ...queryParams,
  };

  return Uri(
    path: '/',
    queryParameters: queryParameters.isEmpty ? null : queryParameters,
  );
}