String toUrlQuery() Source String toUrlQuery() { return urlParams.isNotEmpty ? ('?' + urlParams.join('&')) : ''; }