onRequest method
- RequestOptions options,
- RequestInterceptorHandler handler
override
Removes null-valued query parameters from the outgoing request.
Iterates through options.queryParameters in place, stripping any entry
whose value is null, then forwards the cleaned request via
handler.next.
Implementation
@override
void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
options.queryParameters.removeWhere((String key, Object? value) => value == null);
handler.next(options);
}