notQueryNorPath function

List<RouteParamConfig> notQueryNorPath(
  1. List<RouteParamConfig> parameters
)

Implementation

List<RouteParamConfig> notQueryNorPath(List<RouteParamConfig> parameters) {
  return parameters.where((p) {
    throwIf(p.isPathParam == null || p.isQueryParam == null,
        ExceptionMessages.isPathParamAndIsQueryParamShouldNotBeNull);
    return !p.isPathParam! && !p.isQueryParam!;
  }).toList();
}