processRouteRawRequest method
bool
processRouteRawRequest(
- List<
ParamExtractor> positionalArgumentsFunctions, - Map<
Symbol, ParamExtractor> namedArgumentsFunctions, - ParameterMirror singleParam
Implementation
bool processRouteRawRequest(
List<ParamExtractor> positionalArgumentsFunctions,
Map<Symbol, ParamExtractor> namedArgumentsFunctions,
ParameterMirror singleParam,
) {
bool isRequestEntity = singleParam.type.reflectedType == RequestEntity;
if (isRequestEntity) {
extractor(RequestEntity request) => request;
if (singleParam.isNamed) {
namedArgumentsFunctions[singleParam.simpleName] = extractor;
} else {
positionalArgumentsFunctions.add(extractor);
}
}
return isRequestEntity;
}