queryParameter method
Get a query parameter from the current route.
Shares pathParameter's limit: it answers for the page built last. Use queryParameterOf where a BuildContext is at hand.
// For '/search?q=flutter':
final query = MagicRouter.instance.queryParameter('q'); // 'flutter'
Implementation
String? queryParameter(String key) {
return _currentState?.uri.queryParameters[key];
}