# add method

void add(

1. String name,
2. Object? value, {
3. String? packageName,
4. String? qualifiedName,

})

Adds a generic argument value with an optional type.

Generic arguments are matched by type during constructor resolution. They are used when the parameter position is not explicitly specified.

`value`: The argument value type: Optional type hint for the argument

Example:

    final args = ConstructorArgumentValues();
    args.add('localhost', 'dart.core.String');
    args.add(8080, 'dart.core.int');

## Implementation

    void add(String name, Object? value, {String? packageName, String? qualifiedName}) {
      _values[name] = ArgumentValue(value, name: name, qualifiedName: qualifiedName, packageName: packageName);
    }