constructorParametersValueList function

String constructorParametersValueList(
  1. ConstructorElement constructor, {
  2. Set<DartType>? skip,
})

Implementation

String constructorParametersValueList(
  final ConstructorElement constructor, {
  Set<DartType>? skip,
}) {
  String arg = "";

  for (var par in constructor.parameters) {
    if (skip?.contains(par.type) ?? false) continue;

    arg += "_${par.name},";
  }

  return arg;
}