parametersNamesWhere method

Iterable<String> parametersNamesWhere(
  1. bool test(
    1. ParameterReflection parameter
    ), {
  2. bool jsonName = false,
  3. String nameResolver(
    1. ParameterReflection parameter,
    2. 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;
    });