parametersNamesWhere method
Iterable<String>
parametersNamesWhere(
- bool test(
- ParameterReflection parameter
- bool jsonName = false,
- String nameResolver(
- ParameterReflection parameter,
- String name
Returns a List of parameters names that matches test
.
Implementation
Iterable<String> parametersNamesWhere(
bool Function(ParameterReflection parameter) test,
{bool jsonName = false,
String Function(ParameterReflection parameter, String name)?
nameResolver}) =>
allParameters.where(test).map((e) {
var name = e.resolveName(jsonName);
if (nameResolver != null) {
name = nameResolver(e, name);
}
return name;
});