# get method

ArgumentValue? get({

1. String? qualifiedName,
2. String? name,
3. String? packageName,

})

Retrieves the first generic argument value matching the `requiredType`, or returns `null` if none match.

`requiredType`: The type to match against (null matches any type) Returns the first matching ArgumentValue or null

Example:

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

    final portArg = args.get(name: 'port');
    print(portArg?.value); // 8080

    final portArg = args.get(qualifiedName: 'dart.core.int');
    print(portArg?.value); // 8080

    final portArg = args.get(packageName: 'dart.core');
    print(portArg?.value); // 8080

## Implementation

    ArgumentValue? get({String? qualifiedName, String? name, String? packageName}) {
      if(name != null) {
        return _values[name];
      }

      if(qualifiedName != null) {
        return _values.values.firstWhereOrNull((vh) => vh.getQualifiedName() == qualifiedName);
      }

      return _values.values.firstWhereOrNull((vh) => packageName == null || vh.getPackageName() == packageName);
    }