hasQueryParameter method
Returns true if this URI has a query parameter named key.
Example:
Uri.parse('https://example.com?page=1').hasQueryParameter('page'); // true
Uri.parse('https://example.com?page=1').hasQueryParameter('limit'); // false
Audited: 2026-06-12 11:26 EDT
Implementation
@useResult
bool hasQueryParameter(String key) => queryParameters.containsKey(key);